Commit dc7520c1 authored by Ajay Kumar Gupta's avatar Ajay Kumar Gupta Committed by Greg Kroah-Hartman

USB: otg: fix module reinsert issue

Platform_device instance (pd) is not set to NULL in
usb_nop_xceiv_unregister() causing usb_nop_xceiv_register()
to fail during module reinsert.

From: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: default avatarBabu Ravi <ravibabu@ti.com>
Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
parent 9180135b
...@@ -53,6 +53,7 @@ EXPORT_SYMBOL(usb_nop_xceiv_register); ...@@ -53,6 +53,7 @@ EXPORT_SYMBOL(usb_nop_xceiv_register);
void usb_nop_xceiv_unregister(void) void usb_nop_xceiv_unregister(void)
{ {
platform_device_unregister(pd); platform_device_unregister(pd);
pd = NULL;
} }
EXPORT_SYMBOL(usb_nop_xceiv_unregister); EXPORT_SYMBOL(usb_nop_xceiv_unregister);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment