aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2012-01-12 08:21:38 -0500
committerFelipe Balbi <balbi@ti.com>2012-01-24 04:52:18 -0500
commitf557978745bbea2e7305588d33aac60f4dd42447 (patch)
treeed5dc075c0e9a72e68a628406cbc8d770eac580d /drivers/usb/musb
parentdcd6c92267155e70a94b3927bce681ce74b80d1f (diff)
usb: musb: drop superfluous pm_runtime calls around musb_shutdown
Since commit 4f9edd2d7e8d "usb: musb: Fix the crash issue during reboot" musb_shutdown() does pm_runtime_get_sync/pm_runtime_put by itself, so this no longer needs to be done by the caller. Also, musb_exit_debugfs() doesn't access the device, so just drop those runtime_pm calls. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Shubhrajyoti D <shubhrajyoti@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 56cf0243979e..6a929859b55a 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2111,11 +2111,9 @@ static int __exit musb_remove(struct platform_device *pdev)
2111 * - Peripheral mode: peripheral is deactivated (or never-activated) 2111 * - Peripheral mode: peripheral is deactivated (or never-activated)
2112 * - OTG mode: both roles are deactivated (or never-activated) 2112 * - OTG mode: both roles are deactivated (or never-activated)
2113 */ 2113 */
2114 pm_runtime_get_sync(musb->controller);
2115 musb_exit_debugfs(musb); 2114 musb_exit_debugfs(musb);
2116 musb_shutdown(pdev); 2115 musb_shutdown(pdev);
2117 2116
2118 pm_runtime_put(musb->controller);
2119 musb_free(musb); 2117 musb_free(musb);
2120 iounmap(ctrl_base); 2118 iounmap(ctrl_base);
2121 device_init_wakeup(&pdev->dev, 0); 2119 device_init_wakeup(&pdev->dev, 0);