Merge back earlier cpufreq material for v4.8.
[cascardo/linux.git] / drivers / cpufreq / s5pv210-cpufreq.c
index 06d8591..4f4e9df 100644 (file)
@@ -246,12 +246,8 @@ static int s5pv210_target(struct cpufreq_policy *policy, unsigned int index)
        new_freq = s5pv210_freq_table[index].frequency;
 
        /* Finding current running level index */
-       if (cpufreq_frequency_table_target(policy, s5pv210_freq_table,
-                                          old_freq, CPUFREQ_RELATION_H,
-                                          &priv_index)) {
-               ret = -EINVAL;
-               goto exit;
-       }
+       priv_index = cpufreq_frequency_table_target(policy, old_freq,
+                                                   CPUFREQ_RELATION_H);
 
        arm_volt = dvs_conf[index].arm_volt;
        int_volt = dvs_conf[index].int_volt;