Skip to content

Commit 94e46a4

Browse files
MerlijnWajergregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Bin Liu <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 914a020 commit 94e46a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/musb/musb_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2473,11 +2473,11 @@ static int musb_remove(struct platform_device *pdev)
24732473
musb_disable_interrupts(musb);
24742474
musb_writeb(musb->mregs, MUSB_DEVCTL, 0);
24752475
spin_unlock_irqrestore(&musb->lock, flags);
2476+
musb_platform_exit(musb);
24762477

24772478
pm_runtime_dont_use_autosuspend(musb->controller);
24782479
pm_runtime_put_sync(musb->controller);
24792480
pm_runtime_disable(musb->controller);
2480-
musb_platform_exit(musb);
24812481
musb_phy_callback = NULL;
24822482
if (musb->dma_controller)
24832483
musb_dma_controller_destroy(musb->dma_controller);

0 commit comments

Comments
 (0)