aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/hcd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/usb/hcd.h')
-rw-r--r--include/linux/usb/hcd.h6
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
656extern unsigned usb_wakeup_enabled_descendants(struct usb_device *udev);
655extern void usb_root_hub_lost_power(struct usb_device *rhdev); 657extern void usb_root_hub_lost_power(struct usb_device *rhdev);
656extern int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg); 658extern int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg);
657extern int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg); 659extern int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg);
658extern void usb_hcd_resume_root_hub(struct usb_hcd *hcd); 660extern void usb_hcd_resume_root_hub(struct usb_hcd *hcd);
659#else 661#else
662static inline unsigned usb_wakeup_enabled_descendants(struct usb_device *udev)
663{
664 return 0;
665}
660static inline void usb_hcd_resume_root_hub(struct usb_hcd *hcd) 666static inline void usb_hcd_resume_root_hub(struct usb_hcd *hcd)
661{ 667{
662 return; 668 return;