]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: musb: dsps: compile suspend/resume only with PM_SLEEP
authorWolfram Sang <wsa@sang-engineering.com>
Thu, 17 Apr 2014 08:20:32 +0000 (10:20 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 21 Apr 2014 19:07:30 +0000 (14:07 -0500)
Depending on PM is not enough, because only PM_RUNTIME could be
selected. Fixes:

drivers/usb/musb/musb_dsps.c:703:12: warning: 'dsps_suspend' defined but not used [-Wunused-function]
drivers/usb/musb/musb_dsps.c:721:12: warning: 'dsps_resume' defined but not used [-Wunused-function]

Signed-off-by: Wolfram Sang <wsa@sang-engineering.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_dsps.c

index 138d1dd862354fdd29d43e66c3e4f6c36579479b..9d9acaaa1f183c36c5e257e7f8bf35447656677b 100644 (file)
@@ -774,7 +774,7 @@ static const struct of_device_id musb_dsps_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, musb_dsps_of_match);
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int dsps_suspend(struct device *dev)
 {
        struct dsps_glue *glue = dev_get_drvdata(dev);