diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cpuidle/cpuidle.h | 5 | ||||
-rw-r--r-- | drivers/cpuidle/sysfs.c | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/cpuidle/cpuidle.h b/drivers/cpuidle/cpuidle.h index 2120d9e937c..f6b0923c225 100644 --- a/drivers/cpuidle/cpuidle.h +++ b/drivers/cpuidle/cpuidle.h | |||
@@ -5,8 +5,6 @@ | |||
5 | #ifndef __DRIVER_CPUIDLE_H | 5 | #ifndef __DRIVER_CPUIDLE_H |
6 | #define __DRIVER_CPUIDLE_H | 6 | #define __DRIVER_CPUIDLE_H |
7 | 7 | ||
8 | #include <linux/device.h> | ||
9 | |||
10 | /* For internal use only */ | 8 | /* For internal use only */ |
11 | extern struct cpuidle_governor *cpuidle_curr_governor; | 9 | extern struct cpuidle_governor *cpuidle_curr_governor; |
12 | extern struct list_head cpuidle_governors; | 10 | extern struct list_head cpuidle_governors; |
@@ -25,6 +23,9 @@ extern void cpuidle_uninstall_idle_handler(void); | |||
25 | extern int cpuidle_switch_governor(struct cpuidle_governor *gov); | 23 | extern int cpuidle_switch_governor(struct cpuidle_governor *gov); |
26 | 24 | ||
27 | /* sysfs */ | 25 | /* sysfs */ |
26 | |||
27 | struct device; | ||
28 | |||
28 | extern int cpuidle_add_interface(struct device *dev); | 29 | extern int cpuidle_add_interface(struct device *dev); |
29 | extern void cpuidle_remove_interface(struct device *dev); | 30 | extern void cpuidle_remove_interface(struct device *dev); |
30 | extern int cpuidle_add_state_sysfs(struct cpuidle_device *device); | 31 | extern int cpuidle_add_state_sysfs(struct cpuidle_device *device); |
diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c index f15c1e56e16..49b1f4bcc1b 100644 --- a/drivers/cpuidle/sysfs.c +++ b/drivers/cpuidle/sysfs.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/slab.h> | 12 | #include <linux/slab.h> |
13 | #include <linux/cpu.h> | 13 | #include <linux/cpu.h> |
14 | #include <linux/capability.h> | 14 | #include <linux/capability.h> |
15 | #include <linux/device.h> | ||
15 | 16 | ||
16 | #include "cpuidle.h" | 17 | #include "cpuidle.h" |
17 | 18 | ||