From: MyungJoo Ham Date: Wed, 21 Nov 2012 08:17:11 +0000 (+0900) Subject: PM / devfreq: remove compiler error when a governor is module X-Git-Tag: v3.8-rc1~182^2~4^2~1^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=883d588e556347c4b3221ac492a8acd8a75e730a;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 --- diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h index 235248c..e83ef39 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