cpufreq: s3c: use cpufreq_generic_init()
[sfrench/cifs-2.6.git] / drivers / cpufreq / s3c64xx-cpufreq.c
index a66cfa3e54a1f319efbffdf660fe19f0f4e51725..16dc315d31e651c5aaa2380ff7da45f4a5f8ca74 100644 (file)
@@ -239,9 +239,8 @@ static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy)
         * the PLLs, which we don't currently) is ~300us worst case,
         * but add some fudge.
         */
-       policy->cpuinfo.transition_latency = (500 * 1000) + regulator_latency;
-
-       ret = cpufreq_table_validate_and_show(policy, s3c64xx_freq_table);
+       ret = cpufreq_generic_init(policy, s3c64xx_freq_table,
+                       (500 * 1000) + regulator_latency);
        if (ret != 0) {
                pr_err("Failed to configure frequency table: %d\n",
                       ret);