mfd: Fix omap usbhs crash when rmmoding ehci or ohci
authorKeshava Munegowda <Keshava_mgowda@ti.com>
Mon, 16 May 2011 08:54:58 +0000 (14:24 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 00:32:31 +0000 (09:32 +0900)
commit4e2c4040f3e270dbd66e094a3dff196495d5b765
tree5e7c0f3670ac32e543ce11f0482191df60c8282a
parentc8b7f76958e22a88f2fa510ab05aff1ca08358a6
mfd: Fix omap usbhs crash when rmmoding ehci or ohci

commit 6eb6fbbf3eca6dfba73e72de5ab2eeb52ae41f7a upstream.

The disabling of clocks and freeing GPIO are changed
to fix the occurrence of the crash of rmmod of ehci and ohci
drivers. The GPIOs should be freed after the spin locks are
unlocked.

Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mfd/omap-usb-host.c