Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: s3c2416: fix forgotten driver_data conversions

Commit 5070158804b5 (cpufreq: rename index as driver_data in
cpufreq_frequency_table) renamed the index field to driver_data.

But it seems some uses in the s3c2416 driver were forgotten.

So convert the last index users to read driver_data.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

authored by

Heiko Stübner and committed by
Viresh Kumar
166b9add 9e895ace

+2 -2
+2 -2
drivers/cpufreq/s3c2416-cpufreq.c
··· 312 312 if (freq->frequency == CPUFREQ_ENTRY_INVALID) 313 313 continue; 314 314 315 - dvfs = &s3c2416_dvfs_table[freq->index]; 315 + dvfs = &s3c2416_dvfs_table[freq->driver_data]; 316 316 found = 0; 317 317 318 318 /* Check only the min-voltage, more is always ok on S3C2416 */ ··· 462 462 freq = s3c_freq->freq_table; 463 463 while (freq->frequency != CPUFREQ_TABLE_END) { 464 464 /* special handling for dvs mode */ 465 - if (freq->index == 0) { 465 + if (freq->driver_data == 0) { 466 466 if (!s3c_freq->hclk) { 467 467 pr_debug("cpufreq: %dkHz unsupported as it would need unavailable dvs mode\n", 468 468 freq->frequency);