diff options
Diffstat (limited to 'include/linux/usb/hcd.h')
-rw-r--r-- | include/linux/usb/hcd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h index 695931b03684..bb57b5af4700 100644 --- a/include/linux/usb/hcd.h +++ b/include/linux/usb/hcd.h | |||
@@ -98,6 +98,7 @@ struct usb_hcd { | |||
98 | #ifdef CONFIG_PM | 98 | #ifdef CONFIG_PM |
99 | struct work_struct wakeup_work; /* for remote wakeup */ | 99 | struct work_struct wakeup_work; /* for remote wakeup */ |
100 | #endif | 100 | #endif |
101 | struct work_struct died_work; /* for when the device dies */ | ||
101 | 102 | ||
102 | /* | 103 | /* |
103 | * hardware info/state | 104 | * hardware info/state |
@@ -652,11 +653,16 @@ extern wait_queue_head_t usb_kill_urb_queue; | |||
652 | #define usb_endpoint_out(ep_dir) (!((ep_dir) & USB_DIR_IN)) | 653 | #define usb_endpoint_out(ep_dir) (!((ep_dir) & USB_DIR_IN)) |
653 | 654 | ||
654 | #ifdef CONFIG_PM | 655 | #ifdef CONFIG_PM |
656 | extern unsigned usb_wakeup_enabled_descendants(struct usb_device *udev); | ||
655 | extern void usb_root_hub_lost_power(struct usb_device *rhdev); | 657 | extern void usb_root_hub_lost_power(struct usb_device *rhdev); |
656 | extern int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg); | 658 | extern int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg); |
657 | extern int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg); | 659 | extern int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg); |
658 | extern void usb_hcd_resume_root_hub(struct usb_hcd *hcd); | 660 | extern void usb_hcd_resume_root_hub(struct usb_hcd *hcd); |
659 | #else | 661 | #else |
662 | static inline unsigned usb_wakeup_enabled_descendants(struct usb_device *udev) | ||
663 | { | ||
664 | return 0; | ||
665 | } | ||
660 | static inline void usb_hcd_resume_root_hub(struct usb_hcd *hcd) | 666 | static inline void usb_hcd_resume_root_hub(struct usb_hcd *hcd) |
661 | { | 667 | { |
662 | return; | 668 | return; |