alistair23-linux/drivers/usb/phy
Johan Hovold 015105b121 USB: phy: am335x-control: fix device and of_node leaks
Make sure to drop the references taken by of_parse_phandle() and
bus_find_device() before returning from am335x_get_phy_control().

Note that there is no guarantee that the devres-managed struct
phy_control will be valid for the lifetime of the sibling phy device
regardless of this change.

Fixes: 3bb869c8b3 ("usb: phy: Add AM335x PHY driver")
Acked-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2016-11-18 13:54:09 +02:00
..
Kconfig usb: gadget: move gadget API functions to udc-core 2016-06-21 10:38:34 +03:00
Makefile
of.c
phy-ab8500-usb.c usb: phy: ab8500-usb: fix spelling mistake "regester" -> "register" 2016-08-29 10:46:05 +03:00
phy-am335x-control.c USB: phy: am335x-control: fix device and of_node leaks 2016-11-18 13:54:09 +02:00
phy-am335x-control.h
phy-am335x.c USB: Fix of_usb_get_dr_mode_by_phy with a shared phy block 2016-06-21 10:52:39 +03:00
phy-fsl-usb.c
phy-fsl-usb.h
phy-generic.c usb: patches for v4.9 merge window 2016-09-14 20:37:50 +02:00
phy-generic.h
phy-gpio-vbus-usb.c
phy-isp1301-omap.c
phy-isp1301.c
phy-keystone.c
phy-msm-usb.c usb: phy: move msm_hsusb.h into driver 2016-06-21 11:12:10 +03:00
phy-mv-usb.c
phy-mv-usb.h
phy-mxs-usb.c usb: phy: mxs: Add DT bindings to configure TX settings 2016-08-25 12:13:18 +03:00
phy-omap-otg.c usb: phy: omap-otg: Fix missing platform_set_drvdata() in omap_otg_probe() 2016-08-11 15:09:45 +03:00
phy-qcom-8x16-usb.c
phy-tahvo.c
phy-tegra-usb.c
phy-twl6030-usb.c usb: phy: Check initial state for twl6030 2016-06-01 14:58:59 -07:00
phy-ulpi-viewport.c
phy-ulpi.c
phy.c