aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-10-24 02:04:25 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 19:47:51 -0400
commitdb2d55b7f7f11823b8d2e5f0c706c7a264320d1b (patch)
tree0bf92c677b80042eb2bad6012936f5584e2e4ecb /drivers/usb
parent4f62efe67f077db17dad03a1d4c9665000a3eb45 (diff)
[PATCH] USB: fix pm patches with CONFIG_PM off part 1
With CONFIG_PM=n: drivers/built-in.o(.text+0x2a69c): In function `ohci_hub_control': drivers/usb/host/ohci-hub.c:539: undefined reference to `.usb_hcd_resume_root_hub' drivers/built-in.o(.text+0x2b920): In function `ohci_irq': drivers/usb/host/ohci-hcd.c:726: undefined reference to `.usb_hcd_resume_root_hub' Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/hcd.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/usb/core/hcd.h b/drivers/usb/core/hcd.h
index a5d92943ff95..24a62a2ff86d 100644
--- a/drivers/usb/core/hcd.h
+++ b/drivers/usb/core/hcd.h
@@ -351,9 +351,6 @@ extern long usb_calc_bus_time (int speed, int is_input,
351 351
352extern struct usb_bus *usb_alloc_bus (struct usb_operations *); 352extern struct usb_bus *usb_alloc_bus (struct usb_operations *);
353 353
354extern void usb_hcd_suspend_root_hub (struct usb_hcd *hcd);
355extern void usb_hcd_resume_root_hub (struct usb_hcd *hcd);
356
357extern void usb_set_device_state(struct usb_device *udev, 354extern void usb_set_device_state(struct usb_device *udev,
358 enum usb_device_state new_state); 355 enum usb_device_state new_state);
359 356
@@ -376,9 +373,21 @@ extern int usb_find_interface_driver (struct usb_device *dev,
376#define usb_endpoint_out(ep_dir) (!((ep_dir) & USB_DIR_IN)) 373#define usb_endpoint_out(ep_dir) (!((ep_dir) & USB_DIR_IN))
377 374
378#ifdef CONFIG_PM 375#ifdef CONFIG_PM
376extern void usb_hcd_suspend_root_hub (struct usb_hcd *hcd);
377extern void usb_hcd_resume_root_hub (struct usb_hcd *hcd);
379extern int hcd_bus_suspend (struct usb_bus *bus); 378extern int hcd_bus_suspend (struct usb_bus *bus);
380extern int hcd_bus_resume (struct usb_bus *bus); 379extern int hcd_bus_resume (struct usb_bus *bus);
381#else 380#else
381static inline void usb_hcd_suspend_root_hub(struct usb_hcd *hcd)
382{
383 return;
384}
385
386static inline void usb_hcd_resume_root_hub(struct usb_hcd *hcd)
387{
388 return;
389}
390
382static inline int hcd_bus_suspend(struct usb_bus *bus) 391static inline int hcd_bus_suspend(struct usb_bus *bus)
383{ 392{
384 return 0; 393 return 0;