mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 21:30:53 +07:00
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: Babu Ravi <ravibabu@ti.com> Acked-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
parent
9180135bc8
commit
dc7520c179
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user