USB: otg: Fix bug on remove path without transceiver
authorRobert Jarzmik <robert.jarzmik@free.fr>
Wed, 22 Apr 2009 03:33:10 +0000 (20:33 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Apr 2009 21:15:31 +0000 (14:15 -0700)
commitecf85e481a716cfe07406439fdc7ba9526bbfaeb
treef74809ac41d451e9fe721723a013db26d40adedc
parent052fbc0d7f76106725c998183d64dcacecd21f8f
USB: otg: Fix bug on remove path without transceiver

In the case where a gadget driver is removed while no
transceiver was found at probe time, a bug in
otg_put_transceiver() will trigger.

Provide symetric calls for otg_get_transceiver() and
otg_put_transceiver(), wherever a transceiver was found or
not.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/otg/otg.c