summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavankumar Kondeti <pkondeti@codeaurora.org>2010-12-07 17:54:05 +0530
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-10 14:23:34 -0800
commit2d0cdcc5a0e4e5e467fc4be4d00cc6c531c80b64 (patch)
tree78118b1c370d3d44c1344c7f276af098619e9d9b
parentc036019ed2b729cb9517806c2b388b4f4323a904 (diff)
downloadlinux-2d0cdcc5a0e4e5e467fc4be4d00cc6c531c80b64.tar.gz
linux-2d0cdcc5a0e4e5e467fc4be4d00cc6c531c80b64.tar.bz2
linux-2d0cdcc5a0e4e5e467fc4be4d00cc6c531c80b64.zip
USB: gadget: Implement runtime PM for MSM bus glue driver
OTG driver takes care of putting hardware in low power mode. Hence not registered for any runtime PM callbacks. Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/gadget/ci13xxx_msm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/ci13xxx_msm.c b/drivers/usb/gadget/ci13xxx_msm.c
index c497337bb72b..139ac9419597 100644
--- a/drivers/usb/gadget/ci13xxx_msm.c
+++ b/drivers/usb/gadget/ci13xxx_msm.c
@@ -18,6 +18,7 @@
#include <linux/module.h>
#include <linux/platform_device.h>
+#include <linux/pm_runtime.h>
#include <linux/usb/msm_hsusb_hw.h>
#include <linux/usb/ulpi.h>
@@ -108,6 +109,9 @@ static int ci13xxx_msm_probe(struct platform_device *pdev)
goto udc_remove;
}
+ pm_runtime_no_callbacks(&pdev->dev);
+ pm_runtime_enable(&pdev->dev);
+
return 0;
udc_remove: