diff options
Diffstat (limited to 'drivers/usb/core/usb.h')
-rw-r--r-- | drivers/usb/core/usb.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h index b60ebb4de1a8..9fb195665fa8 100644 --- a/drivers/usb/core/usb.h +++ b/drivers/usb/core/usb.h | |||
@@ -1,3 +1,5 @@ | |||
1 | #include <linux/pm.h> | ||
2 | |||
1 | /* Functions local to drivers/usb/core/ */ | 3 | /* Functions local to drivers/usb/core/ */ |
2 | 4 | ||
3 | extern int usb_create_sysfs_dev_files(struct usb_device *dev); | 5 | extern int usb_create_sysfs_dev_files(struct usb_device *dev); |
@@ -42,15 +44,16 @@ extern void usb_host_cleanup(void); | |||
42 | #ifdef CONFIG_PM | 44 | #ifdef CONFIG_PM |
43 | 45 | ||
44 | extern int usb_suspend(struct device *dev, pm_message_t msg); | 46 | extern int usb_suspend(struct device *dev, pm_message_t msg); |
45 | extern int usb_resume(struct device *dev); | 47 | extern int usb_resume(struct device *dev, pm_message_t msg); |
46 | 48 | ||
47 | extern void usb_autosuspend_work(struct work_struct *work); | 49 | extern void usb_autosuspend_work(struct work_struct *work); |
48 | extern void usb_autoresume_work(struct work_struct *work); | 50 | extern void usb_autoresume_work(struct work_struct *work); |
49 | extern int usb_port_suspend(struct usb_device *dev); | 51 | extern int usb_port_suspend(struct usb_device *dev, pm_message_t msg); |
50 | extern int usb_port_resume(struct usb_device *dev); | 52 | extern int usb_port_resume(struct usb_device *dev, pm_message_t msg); |
51 | extern int usb_external_suspend_device(struct usb_device *udev, | 53 | extern int usb_external_suspend_device(struct usb_device *udev, |
52 | pm_message_t msg); | 54 | pm_message_t msg); |
53 | extern int usb_external_resume_device(struct usb_device *udev); | 55 | extern int usb_external_resume_device(struct usb_device *udev, |
56 | pm_message_t msg); | ||
54 | 57 | ||
55 | static inline void usb_pm_lock(struct usb_device *udev) | 58 | static inline void usb_pm_lock(struct usb_device *udev) |
56 | { | 59 | { |
@@ -64,12 +67,12 @@ static inline void usb_pm_unlock(struct usb_device *udev) | |||
64 | 67 | ||
65 | #else | 68 | #else |
66 | 69 | ||
67 | static inline int usb_port_suspend(struct usb_device *udev) | 70 | static inline int usb_port_suspend(struct usb_device *udev, pm_message_t msg) |
68 | { | 71 | { |
69 | return 0; | 72 | return 0; |
70 | } | 73 | } |
71 | 74 | ||
72 | static inline int usb_port_resume(struct usb_device *udev) | 75 | static inline int usb_port_resume(struct usb_device *udev, pm_message_t msg) |
73 | { | 76 | { |
74 | return 0; | 77 | return 0; |
75 | } | 78 | } |