diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2008-11-24 15:01:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 13:00:02 -0500 |
commit | 68144e0cc92125f41157ede7b060f83367bc4fe7 (patch) | |
tree | 9f1f5f68fa2d23fb549f2419b8ffb5c5263b15c6 /arch | |
parent | 6084f1bf0c51a99cbba612ee90a4607cffb8b042 (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/plat-omap/usb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/usb.c b/arch/arm/plat-omap/usb.c index 67ca1e216df7..2f88ca8b8f38 100644 --- a/arch/arm/plat-omap/usb.c +++ b/arch/arm/plat-omap/usb.c | |||
@@ -96,6 +96,12 @@ struct otg_transceiver *otg_get_transceiver(void) | |||
96 | } | 96 | } |
97 | EXPORT_SYMBOL(otg_get_transceiver); | 97 | EXPORT_SYMBOL(otg_get_transceiver); |
98 | 98 | ||
99 | void otg_put_transceiver(struct otg_transceiver *x) | ||
100 | { | ||
101 | put_device(x->dev); | ||
102 | } | ||
103 | EXPORT_SYMBOL(otg_put_transceiver); | ||
104 | |||
99 | int otg_set_transceiver(struct otg_transceiver *x) | 105 | int otg_set_transceiver(struct otg_transceiver *x) |
100 | { | 106 | { |
101 | if (xceiv && x) | 107 | if (xceiv && x) |