usb: gadget: atmel: fix build warnings
authorFelipe Balbi <balbi@ti.com>
Wed, 27 May 2015 17:29:18 +0000 (12:29 -0500)
committerFelipe Balbi <balbi@ti.com>
Wed, 27 May 2015 17:30:31 +0000 (12:30 -0500)
This patch fixes the following build warnings:

drivers/usb/gadget/udc/atmel_usba_udc.c:2207:12: warning:
‘usba_udc_suspend’ defined but not used [-Wunused-function] static int
usba_udc_suspend(struct device *dev)
drivers/usb/gadget/udc/atmel_usba_udc.c:2236:12: warning:
‘usba_udc_resume’ defined but not used [-Wunused-function] static int
usba_udc_resume(struct device *dev)

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/atmel_usba_udc.c

index 5437346908e7b244723b89d70ca3268a33f71fce..a01483f2065882f1e36fe1ba4c02e3aac78316d5 100644 (file)
@@ -2203,7 +2203,7 @@ static int __exit usba_udc_remove(struct platform_device *pdev)
        return 0;
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int usba_udc_suspend(struct device *dev)
 {
        struct usba_udc *udc = dev_get_drvdata(dev);