summaryrefslogtreecommitdiff
path: root/include/linux/devfreq.h
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2012-11-21 17:17:11 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2012-11-26 19:17:44 +0900
commit883d588e556347c4b3221ac492a8acd8a75e730a (patch)
tree6f53a865327f86c4261ee2f5afbaff6efce132ab /include/linux/devfreq.h
parentdce9dc3a24f03b054dae02ef5cf1df7e97a8f558 (diff)
downloadlwn-883d588e556347c4b3221ac492a8acd8a75e730a.tar.gz
lwn-883d588e556347c4b3221ac492a8acd8a75e730a.zip
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.h2
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,
extern int devfreq_unregister_opp_notifier(struct device *dev,
struct devfreq *devfreq);
-#ifdef CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND
+#if IS_ENABLED(CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND)
/**
* struct devfreq_simple_ondemand_data - void *data fed to struct devfreq
* and devfreq_add_device