summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWolfram Sang <wsa@sang-engineering.com>2014-04-17 10:20:32 +0200
committerFelipe Balbi <balbi@ti.com>2014-04-21 14:07:30 -0500
commit5b7839836109a802b144a05cfbd4f57e6564d8e5 (patch)
tree5b432a53aca344e2d3281514747a16de795a4dcd /drivers
parent9f58fa4c919e1a33e3844f6851735ec9f724bf52 (diff)
downloadop-kernel-dev-5b7839836109a802b144a05cfbd4f57e6564d8e5.zip
op-kernel-dev-5b7839836109a802b144a05cfbd4f57e6564d8e5.tar.gz
usb: musb: dsps: compile suspend/resume only with PM_SLEEP
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/musb/musb_dsps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
index 138d1dd..9d9acaa 100644
--- a/drivers/usb/musb/musb_dsps.c
+++ b/drivers/usb/musb/musb_dsps.c
@@ -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);
OpenPOWER on IntegriCloud