linux_old1/drivers/usb/otg
Marc Kleine-Budde 1dd03d8a51 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>
2013-03-04 09:33:30 +02:00
..
Kconfig USB: fix fsl_otg config dependency 2012-12-13 11:58:40 +02:00
Makefile usb: otg: add basic mxs phy driver support 2012-07-09 09:59:23 -07:00
ab8500-usb.c usb: remove use of __devexit 2012-11-21 13:27:17 -08:00
fsl_otg.c usb: remove use of __devexit 2012-11-21 13:27:17 -08:00
fsl_otg.h usb: otg: fsl: Start using struct usb_otg 2012-02-13 13:35:25 +02:00
gpio_vbus.c usb: converto drivers/usb/* to use module_platform_driver_probe() 2013-01-17 17:39:34 -08:00
isp1301_omap.c usb: remove use of __devinit 2012-11-21 13:27:16 -08:00
msm_otg.c usb: converto drivers/usb/* to use module_platform_driver_probe() 2013-01-17 17:39:34 -08:00
mv_otg.c usb: xceiv: patches for v3.9 merge window 2013-01-25 09:09:46 -08:00
mv_otg.h usb: otg: mv_otg: Start using struct usb_otg 2012-02-27 15:41:22 +02:00
mxs-phy.c USB patches for 3.9-rc1 2013-02-21 12:20:00 -08:00
nop-usb-xceiv.c usb: remove use of __devexit 2012-11-21 13:27:17 -08:00
otg.c usb: otg: use try_module_get in all usb_get_phy functions and add missing module_put 2013-03-04 09:33:30 +02:00
otg_fsm.c usb: otg: fsl: Start using struct usb_otg 2012-02-13 13:35:25 +02:00
otg_fsm.h usb: otg: fsl: Start using struct usb_otg 2012-02-13 13:35:25 +02:00
twl4030-usb.c usb: musb: omap: make use of the new PHY lib APIs 2013-01-25 13:03:09 +02:00
twl6030-usb.c usb: remove use of __devinit 2012-11-21 13:27:16 -08:00
ulpi.c usb: otg: ulpi: Start using struct usb_otg 2012-02-13 13:35:56 +02:00
ulpi_viewport.c usb: otg: ulpi: Start using struct usb_otg 2012-02-13 13:35:56 +02:00