]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
PM / devfreq: remove compiler error when a governor is module
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 21 Nov 2012 08:17:11 +0000 (17:17 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 26 Nov 2012 10:17:44 +0000 (19:17 +0900)
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>
include/linux/devfreq.h

index 235248cb2c938452cbd998c8a171b4ac7c6d0b69..e83ef39b3bea7359475d328aeed2e81d6b8926af 100644 (file)
@@ -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