usb: musb: Fix external abort in musb_remove on omap2430
authorMerlijn Wajer <merlijn@wizzup.org>
Tue, 13 Mar 2018 14:48:40 +0000 (09:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Mar 2018 15:36:59 +0000 (16:36 +0100)
commit94e46a4f2d5eb14059e42f313c098d4854847376
tree0abddd490adb1a1d7f9753af6769794b6c4bc91c
parent914a020d4a970828837f44759209c956f9cf9c00
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>
drivers/usb/musb/musb_core.c