summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 81ceea6..5c75e31 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -978,6 +978,7 @@ static int __cpufreq_add_dev(struct device *dev, struct subsys_interface *sif,
cpufreq_cpu_put(policy);
return 0;
}
+#endif
if (!down_read_trylock(&cpufreq_rwsem))
return 0;
@@ -995,7 +996,6 @@ static int __cpufreq_add_dev(struct device *dev, struct subsys_interface *sif,
}
read_unlock_irqrestore(&cpufreq_driver_lock, flags);
#endif
-#endif
if (frozen)
/* Restore the saved policy when doing light-weight init */
OpenPOWER on IntegriCloud