usb: musb: fix hanging when rmmod gadget driver
authorFelipe Balbi <felipe.balbi@nokia.com>
Mon, 4 Aug 2008 10:53:52 +0000 (13:53 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Aug 2008 00:33:00 +0000 (17:33 -0700)
commitf362a47560070ec0aaf68ac6b45901eeed1c844f
tree13712fa7b938488a35ab16777133e6adabec17df
parent550a7375fe720924241f0eb76e4a5c1a3eb8c32f
usb: musb: fix hanging when rmmod gadget driver

If we try to modprobe a second gadget driver before
rmmoding the first one, the reference for the first
gadget driver would get NULLed avoiding usb to change
gadget drivers later.

Cc: David Brownell <david-b@pacbell.net>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_gadget.c