Skip to content

Commit

Permalink
USB: gadget: Implement runtime PM for MSM bus glue driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavankumar Kondeti authored and Greg Kroah-Hartman committed Dec 10, 2010
1 parent c036019 commit 2d0cdcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/usb/gadget/ci13xxx_msm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2d0cdcc

Please sign in to comment.