diff options
-rw-r--r-- | drivers/usb/host/xhci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 33d0034d8a6f..9dc5be557d92 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -551,6 +551,7 @@ void xhci_shutdown(struct usb_hcd *hcd) | |||
551 | xhci_readl(xhci, &xhci->op_regs->status)); | 551 | xhci_readl(xhci, &xhci->op_regs->status)); |
552 | } | 552 | } |
553 | 553 | ||
554 | #ifdef CONFIG_PM | ||
554 | static void xhci_save_registers(struct xhci_hcd *xhci) | 555 | static void xhci_save_registers(struct xhci_hcd *xhci) |
555 | { | 556 | { |
556 | xhci->s3.command = xhci_readl(xhci, &xhci->op_regs->command); | 557 | xhci->s3.command = xhci_readl(xhci, &xhci->op_regs->command); |
@@ -761,6 +762,13 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated) | |||
761 | return 0; | 762 | return 0; |
762 | } | 763 | } |
763 | 764 | ||
765 | #else | ||
766 | |||
767 | #define xhci_suspend NULL | ||
768 | #define xhci_resume NULL | ||
769 | |||
770 | #endif /* CONFIG_PM */ | ||
771 | |||
764 | /*-------------------------------------------------------------------------*/ | 772 | /*-------------------------------------------------------------------------*/ |
765 | 773 | ||
766 | /** | 774 | /** |