aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpufreq/cpufreq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 480c49c71afe..94117a7f219b 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -1025,8 +1025,9 @@ static int __cpufreq_remove_dev(struct device *dev, struct subsys_interface *sif
1025 __cpufreq_governor(data, CPUFREQ_GOV_STOP); 1025 __cpufreq_governor(data, CPUFREQ_GOV_STOP);
1026 1026
1027#ifdef CONFIG_HOTPLUG_CPU 1027#ifdef CONFIG_HOTPLUG_CPU
1028 strncpy(per_cpu(cpufreq_cpu_governor, cpu), data->governor->name, 1028 if (!cpufreq_driver->setpolicy)
1029 CPUFREQ_NAME_LEN); 1029 strncpy(per_cpu(cpufreq_cpu_governor, cpu),
1030 data->governor->name, CPUFREQ_NAME_LEN);
1030#endif 1031#endif
1031 1032
1032 WARN_ON(lock_policy_rwsem_write(cpu)); 1033 WARN_ON(lock_policy_rwsem_write(cpu));