summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMerlijn Wajer <merlijn@wizzup.org>2018-03-13 17:48:40 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-13 18:36:59 +0300
commit94e46a4f2d5eb14059e42f313c098d4854847376 (patch)
tree0abddd490adb1a1d7f9753af6769794b6c4bc91c /drivers
parent914a020d4a970828837f44759209c956f9cf9c00 (diff)
downloadlinux-94e46a4f2d5eb14059e42f313c098d4854847376.tar.xz
usb: musb: Fix external abort in musb_remove on omap2430
This fixes an oops on unbind / module unload (on the musb omap2430 platform). musb_remove function now calls musb_platform_exit before disabling runtime pm. Signed-off-by: Merlijn Wajer <merlijn@wizzup.org> Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/musb/musb_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index c344ef4e5355..4d723077be2b 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2473,11 +2473,11 @@ static int musb_remove(struct platform_device *pdev)
musb_disable_interrupts(musb);
musb_writeb(musb->mregs, MUSB_DEVCTL, 0);
spin_unlock_irqrestore(&musb->lock, flags);
+ musb_platform_exit(musb);
pm_runtime_dont_use_autosuspend(musb->controller);
pm_runtime_put_sync(musb->controller);
pm_runtime_disable(musb->controller);
- musb_platform_exit(musb);
musb_phy_callback = NULL;
if (musb->dma_controller)
musb_dma_controller_destroy(musb->dma_controller);