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>
Thu, 26 Apr 2018 09:02:03 +0000 (11:02 +0200)
commit1f52b0c642157bafda295c16a4650b4f0c26f4d1
tree71f40594d6869eece4e096b52b56dfcbd6ea6eba
parentde4c4914cce296b8dd9f5381f5d5dad70a065ba0
usb: musb: Fix external abort in musb_remove on omap2430

commit 94e46a4f2d5eb14059e42f313c098d4854847376 upstream.

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