diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2010-10-15 17:59:15 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:22:15 -0400 |
commit | 436a389096e1feda2c382cad83b6a8d6de8615a0 (patch) | |
tree | 6c68d7e5ab037deef677e35a8b1bfc425e63694f /drivers/usb/host/xhci-hub.c | |
parent | 39eb234874af4322f85e2a29e3aad33ce68cbed5 (diff) |
usb: Fix linker errors with CONFIG_PM=n
Fix these linker errors when CONFIG_PM=n:
ERROR: "xhci_bus_resume" [drivers/usb/host/xhci-hcd.ko] undefined!
ERROR: "xhci_bus_suspend" [drivers/usb/host/xhci-hcd.ko] undefined!
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/xhci-hub.c')
-rw-r--r-- | drivers/usb/host/xhci-hub.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 7f2f63cb6c53..fef5a1f9d483 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c | |||
@@ -742,9 +742,4 @@ int xhci_bus_resume(struct usb_hcd *hcd) | |||
742 | return 0; | 742 | return 0; |
743 | } | 743 | } |
744 | 744 | ||
745 | #else | 745 | #endif /* CONFIG_PM */ |
746 | |||
747 | #define xhci_bus_suspend NULL | ||
748 | #define xhci_bus_resume NULL | ||
749 | |||
750 | #endif | ||