]> git.karo-electronics.de Git - linux-beck.git/commitdiff
USB: gadget: Implement runtime PM for MSM bus glue driver
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Tue, 7 Dec 2010 12:24:05 +0000 (17:54 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 10 Dec 2010 22:23:34 +0000 (14:23 -0800)
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>
drivers/usb/gadget/ci13xxx_msm.c

index c497337bb72be544f7d1c0ed1388e76d1cf958dd..139ac9419597359d75df3e2593659b8f972dbef5 100644 (file)
@@ -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: