Browse Source

usb: xhci: avoid warning for !PM_SLEEP

If we build a kernel with PM_SUSPEND set and no PM_SLEEP,
we get a build warning in the xhci-plat driver about unused
functions.

To fix this, use "#ifdef CONFIG_PM_SLEEP", like we do in most
other drivers nowadays.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Mathias Nyman <mathias.nyman@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Arnd Bergmann 11 years ago
parent
commit
274f6afa29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/usb/host/xhci-plat.c

+ 1 - 1
drivers/usb/host/xhci-plat.c

@@ -234,7 +234,7 @@ static int xhci_plat_remove(struct platform_device *dev)
 	return 0;
 	return 0;
 }
 }
 
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int xhci_plat_suspend(struct device *dev)
 static int xhci_plat_suspend(struct device *dev)
 {
 {
 	struct usb_hcd	*hcd = dev_get_drvdata(dev);
 	struct usb_hcd	*hcd = dev_get_drvdata(dev);