usb: musb: am35x: fix build warnings
authorFelipe Balbi <balbi@ti.com>
Wed, 27 May 2015 17:24:23 +0000 (12:24 -0500)
committerFelipe Balbi <balbi@ti.com>
Wed, 27 May 2015 17:29:57 +0000 (12:29 -0500)
This patch fixes the following build warnings:

drivers/usb/musb/am35x.c:573:12: warning: ‘am35x_suspend’ defined but
not used [-Wunused-function]
drivers/usb/musb/am35x.c:589:12: warning: ‘am35x_resume’ defined but not
used [-Wunused-function]
drivers/usb/musb/am35x.c:573:12: warning: ‘am35x_suspend’ defined but
not used [-Wunused-function]
drivers/usb/musb/am35x.c:589:12: warning: ‘am35x_resume’ defined but not
used [-Wunused-function]

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/am35x.c

index 6cfd43a62d3ba4f9b4ce051f5be10415c40dea0e..c41fe588d14d97f75ef3d57729bc75b37891cdce 100644 (file)
@@ -569,7 +569,7 @@ static int am35x_remove(struct platform_device *pdev)
        return 0;
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int am35x_suspend(struct device *dev)
 {
        struct am35x_glue       *glue = dev_get_drvdata(dev);