diff options
| author | Viresh Kumar <[email protected]> | 2018-02-23 04:08:28 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2018-02-27 16:23:51 +0000 |
| commit | 0373ca74831b0f93cd4cdbf7ad3aec3c33a479a5 (patch) | |
| tree | f0b31f65c407a7a556f0fe65b8d3c12e23c72e74 /drivers/cpufreq/cppc_cpufreq.c | |
| parent | Linux 4.16-rc3 (diff) | |
| download | kernel-0373ca74831b0f93cd4cdbf7ad3aec3c33a479a5.tar.gz kernel-0373ca74831b0f93cd4cdbf7ad3aec3c33a479a5.zip | |
cpufreq: s3c24xx: Fix broken s3c_cpufreq_init()
commit a307a1e6bc0d "cpufreq: s3c: use cpufreq_generic_init()"
accidentally broke cpufreq on s3c2410 and s3c2412.
These two platforms don't have a CPU frequency table and used to skip
calling cpufreq_table_validate_and_show() for them. But with the
above commit, we started calling it unconditionally and that will
eventually fail as the frequency table pointer is NULL.
Fix this by calling cpufreq_table_validate_and_show() conditionally
again.
Fixes: a307a1e6bc0d "cpufreq: s3c: use cpufreq_generic_init()"
Cc: 3.13+ <[email protected]> # v3.13+
Signed-off-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
0 files changed, 0 insertions, 0 deletions
