USB: otg: fix module reinsert issue
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Fri, 3 Jul 2009 07:48:45 +0000 (13:18 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 12 Jul 2009 22:16:41 +0000 (15:16 -0700)
commitdc7520c17982ca4232233d2781e5cde29e58fbad
treeaf18840e3bfa282f82e398b2cd0aa09c4c978cec
parent9180135bc80ab11199d482b6111e23f74d65af4a
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>
drivers/usb/otg/nop-usb-xceiv.c