File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -273,8 +273,8 @@ void devm_devfreq_unregister_notifier(struct device *dev,
273
273
struct devfreq * devfreq_get_devfreq_by_node (struct device_node * node );
274
274
struct devfreq * devfreq_get_devfreq_by_phandle (struct device * dev ,
275
275
const char * phandle_name , int index );
276
+ #endif /* CONFIG_PM_DEVFREQ */
276
277
277
- #if IS_ENABLED (CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND )
278
278
/**
279
279
* struct devfreq_simple_ondemand_data - ``void *data`` fed to struct devfreq
280
280
* and devfreq_add_device
@@ -292,9 +292,7 @@ struct devfreq_simple_ondemand_data {
292
292
unsigned int upthreshold ;
293
293
unsigned int downdifferential ;
294
294
};
295
- #endif
296
295
297
- #if IS_ENABLED (CONFIG_DEVFREQ_GOV_PASSIVE )
298
296
enum devfreq_parent_dev_type {
299
297
DEVFREQ_PARENT_DEV ,
300
298
CPUFREQ_PARENT_DEV ,
@@ -337,9 +335,8 @@ struct devfreq_passive_data {
337
335
struct notifier_block nb ;
338
336
struct list_head cpu_data_list ;
339
337
};
340
- #endif
341
338
342
- #else /* ! CONFIG_PM_DEVFREQ */
339
+ #if !defined( CONFIG_PM_DEVFREQ )
343
340
static inline struct devfreq * devfreq_add_device (struct device * dev ,
344
341
struct devfreq_dev_profile * profile ,
345
342
const char * governor_name ,
You can’t perform that action at this time.
0 commit comments