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)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 26 May 2011 17:45:49 +0000 (19:45 +0200)
commit6eb6fbbf3eca6dfba73e72de5ab2eeb52ae41f7a
tree471ff9aa1aaf2a30857e69d915807fa9dd803f3c
parent13ca4f66108188231f9ef0358449f4543a0b84a1
mfd: Fix omap usbhs crash when rmmoding ehci or ohci

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>
Cc: stable@kernel.org
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/omap-usb-host.c