diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-02-27 15:11:13 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-04 09:33:30 +0200 |
commit | 1dd03d8a510dae402096b194385a1373100450dc (patch) | |
tree | fdb98b38bb816b090e36a66720abb0ec04a67802 /net/iucv/iucv.c | |
parent | a10840c9acbeca7aada3543823fdb59909342d96 (diff) | |
download | lwn-1dd03d8a510dae402096b194385a1373100450dc.tar.gz lwn-1dd03d8a510dae402096b194385a1373100450dc.zip |
usb: otg: use try_module_get in all usb_get_phy functions and add missing module_put
In patch "5d3c28b usb: otg: add device tree support to otg library"
devm_usb_get_phy_by_phandle() was added. It uses try_module_get() to lock the
phy driver in memory. The corresponding module_put() is missing in that patch.
This patch adds try_module_get() to usb_get_phy() and usb_get_phy_dev().
Further the missing module_put() is added to usb_put_phy().
Tested-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Reviewed-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'net/iucv/iucv.c')
0 files changed, 0 insertions, 0 deletions