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 <[email protected]>
Signed-off-by: Babu Ravi <[email protected]>
Acked-by: David Brownell <[email protected]>
This commit is contained in:
Ajay Kumar Gupta 2009-07-03 13:18:45 +05:30 • committed by Greg Kroah-Hartman
commit dc7520c179

View file

@ -53,6 +53,7 @@ EXPORT_SYMBOL(usb_nop_xceiv_register);
void usb_nop_xceiv_unregister(void)
{
platform_device_unregister(pd);
pd = NULL;
}
EXPORT_SYMBOL(usb_nop_xceiv_unregister);