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 5437346..a01483f 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);