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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
39eb234874
commit
436a389096
@@ -742,9 +742,4 @@ int xhci_bus_resume(struct usb_hcd *hcd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#define xhci_bus_suspend NULL
|
||||
#define xhci_bus_resume NULL
|
||||
|
||||
#endif
|
||||
#endif /* CONFIG_PM */
|
||||
|
Reference in New Issue
Block a user