aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorPavankumar Kondeti <pkondeti@codeaurora.org>2010-12-07 07:24:05 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-10 17:23:34 -0500
commit2d0cdcc5a0e4e5e467fc4be4d00cc6c531c80b64 (patch)
tree78118b1c370d3d44c1344c7f276af098619e9d9b /drivers/usb/gadget
parentc036019ed2b729cb9517806c2b388b4f4323a904 (diff)
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>
Diffstat (limited to 'drivers/usb/gadget')
-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 @@
18 18
19#include <linux/module.h> 19#include <linux/module.h>
20#include <linux/platform_device.h> 20#include <linux/platform_device.h>
21#include <linux/pm_runtime.h>
21#include <linux/usb/msm_hsusb_hw.h> 22#include <linux/usb/msm_hsusb_hw.h>
22#include <linux/usb/ulpi.h> 23#include <linux/usb/ulpi.h>
23 24
@@ -108,6 +109,9 @@ static int ci13xxx_msm_probe(struct platform_device *pdev)
108 goto udc_remove; 109 goto udc_remove;
109 } 110 }
110 111
112 pm_runtime_no_callbacks(&pdev->dev);
113 pm_runtime_enable(&pdev->dev);
114
111 return 0; 115 return 0;
112 116
113udc_remove: 117udc_remove: