]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/cpufreq/omap-cpufreq.c
nvme.h: Add get_log_page command strucure
[karo-tx-linux.git] / drivers / cpufreq / omap-cpufreq.c
index cead9bec4843a18e0d564e4b5d3522d0681cd778..376e63ca94e840e5334ae4d803dc9a173a69ab15 100644 (file)
@@ -54,7 +54,7 @@ static int omap_target(struct cpufreq_policy *policy, unsigned int index)
 
        freq = new_freq * 1000;
        ret = clk_round_rate(policy->clk, freq);
-       if (IS_ERR_VALUE(ret)) {
+       if (ret < 0) {
                dev_warn(mpu_dev,
                         "CPUfreq: Cannot find matching frequency for %lu\n",
                         freq);