summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorWolfram Sang2014-04-17 10:20:32 +0200
committerFelipe Balbi2014-04-21 21:07:30 +0200
commit5b7839836109a802b144a05cfbd4f57e6564d8e5 (patch)
tree5b432a53aca344e2d3281514747a16de795a4dcd /drivers/usb/musb
parentusb: gadget: f_subset: replace PTR_RET with PTR_ERR_OR_ZERO (diff)
downloadkernel-qcow2-linux-5b7839836109a802b144a05cfbd4f57e6564d8e5.tar.gz
kernel-qcow2-linux-5b7839836109a802b144a05cfbd4f57e6564d8e5.tar.xz
kernel-qcow2-linux-5b7839836109a802b144a05cfbd4f57e6564d8e5.zip
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/usb/musb')
-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 138d1dd86235..9d9acaaa1f18 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);