summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHema HK <hemahk@ti.com>2010-10-20 12:27:01 -0400
committerG, Manjunath Kondaiah <manjugk@ti.com>2010-10-29 14:30:12 +0530
commita9dbf8c0a8cca7a7ec3744db7baf2a9a74854f9b (patch)
tree177b43d75ebcae468b794f32b77c9576cf5390f4
parent89cf1e9c2f17b5cea0c908a4737e60f76c9c8173 (diff)
usb: musb: fix for unloading the musb driver
Registering the blocking notification is done while loading the driver. Unregistering notifications is missing while unloading the driver. This was leading to crash when loading the driver next time. Fixed the issue by unregistering for notification while unloading the module. Signed-off-by: Hema HK <hemahk@ti.com>
-rwxr-xr-x[-rw-r--r--]drivers/usb/musb/omap2430.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index b18badaf5c43..f7085f00bed5 100644..100755
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -419,6 +419,10 @@ static int musb_platform_resume(struct musb *musb)
int musb_platform_exit(struct musb *musb)
{
+ if (cpu_is_omap44xx()) {
+ /* register for transciever notification*/
+ otg_unregister_notifier(musb->xceiv, &musb->nb);
+ }
musb_platform_suspend(musb);
return 0;