diff options
Diffstat (limited to 'include/linux/sysdev.h')
-rw-r--r-- | include/linux/sysdev.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/sysdev.h b/include/linux/sysdev.h index 635db1df656f..2a4b432e1176 100644 --- a/include/linux/sysdev.h +++ b/include/linux/sysdev.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #define _SYSDEV_H_ | 22 | #define _SYSDEV_H_ |
23 | 23 | ||
24 | #include <linux/kobject.h> | 24 | #include <linux/kobject.h> |
25 | #include <linux/pm.h> | ||
25 | 26 | ||
26 | 27 | ||
27 | struct sys_device; | 28 | struct sys_device; |
@@ -31,7 +32,7 @@ struct sysdev_class { | |||
31 | 32 | ||
32 | /* Default operations for these types of devices */ | 33 | /* Default operations for these types of devices */ |
33 | int (*shutdown)(struct sys_device *); | 34 | int (*shutdown)(struct sys_device *); |
34 | int (*suspend)(struct sys_device *, u32 state); | 35 | int (*suspend)(struct sys_device *, pm_message_t state); |
35 | int (*resume)(struct sys_device *); | 36 | int (*resume)(struct sys_device *); |
36 | struct kset kset; | 37 | struct kset kset; |
37 | }; | 38 | }; |
@@ -50,7 +51,7 @@ struct sysdev_driver { | |||
50 | int (*add)(struct sys_device *); | 51 | int (*add)(struct sys_device *); |
51 | int (*remove)(struct sys_device *); | 52 | int (*remove)(struct sys_device *); |
52 | int (*shutdown)(struct sys_device *); | 53 | int (*shutdown)(struct sys_device *); |
53 | int (*suspend)(struct sys_device *, u32 state); | 54 | int (*suspend)(struct sys_device *, pm_message_t state); |
54 | int (*resume)(struct sys_device *); | 55 | int (*resume)(struct sys_device *); |
55 | }; | 56 | }; |
56 | 57 | ||