Skip to content

Commit

Permalink
PM / devfreq: remove compiler error when a governor is module
Browse files Browse the repository at this point in the history
With the intruction of patch, eff607f,
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>
  • Loading branch information
MyungJoo Ham committed Nov 26, 2012
1 parent dce9dc3 commit 883d588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/devfreq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 883d588

Please sign in to comment.