diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2012-11-21 03:17:11 -0500 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2012-11-26 05:17:44 -0500 |
commit | 883d588e556347c4b3221ac492a8acd8a75e730a (patch) | |
tree | 6f53a865327f86c4261ee2f5afbaff6efce132ab /include/linux/devfreq.h | |
parent | dce9dc3a24f03b054dae02ef5cf1df7e97a8f558 (diff) |
PM / devfreq: remove compiler error when a governor is module
With the intruction of patch, eff607fdb1f787da1fedf46ab6e64adc2afd1c5a,
it became possible to include a governor as a module.
Thus the #ifdef statement for a governor should become #if IS_ENABLED.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'include/linux/devfreq.h')
-rw-r--r-- | include/linux/devfreq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h index 235248cb2c93..e83ef39b3bea 100644 --- a/include/linux/devfreq.h +++ b/include/linux/devfreq.h | |||
@@ -192,7 +192,7 @@ extern int devfreq_register_opp_notifier(struct device *dev, | |||
192 | extern int devfreq_unregister_opp_notifier(struct device *dev, | 192 | extern int devfreq_unregister_opp_notifier(struct device *dev, |
193 | struct devfreq *devfreq); | 193 | struct devfreq *devfreq); |
194 | 194 | ||
195 | #ifdef CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND | 195 | #if IS_ENABLED(CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND) |
196 | /** | 196 | /** |
197 | * struct devfreq_simple_ondemand_data - void *data fed to struct devfreq | 197 | * struct devfreq_simple_ondemand_data - void *data fed to struct devfreq |
198 | * and devfreq_add_device | 198 | * and devfreq_add_device |