USB: otg: add otg_put_transceiver()
authorPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 24 Nov 2008 20:01:17 +0000 (12:01 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Jan 2009 18:00:02 +0000 (10:00 -0800)
commit68144e0cc92125f41157ede7b060f83367bc4fe7
tree9f1f5f68fa2d23fb549f2419b8ffb5c5263b15c6
parent6084f1bf0c51a99cbba612ee90a4607cffb8b042
USB: otg: add otg_put_transceiver()

As Russell King points out, calling put_device(otg_transceiver->dev)
directly in driver cleanup paths makes assumptions about otg_transceiver
internals.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/plat-omap/usb.c
drivers/usb/gadget/omap_udc.c
include/linux/usb/otg.h