OpenCloudOS-Kernel/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 usb: phy: Remove unused Renesas R-Car (Gen1) USB PHY driver 2015-12-15 09:12:41 -06:00
of.c usb: phy: fixed comment typo 2015-03-11 10:19:36 -05:00
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 usb: phy: phy-am335x: bypass first VBUS sensing for host-only mode 2015-12-16 10:07:25 -06:00
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 usb: phy: phy-fsl-usb: Remove some unused functions 2015-01-12 12:13:29 -06:00
phy-fsl-usb.h usb: phy: fsl: Fix build errors 2014-11-12 08:37:37 -06:00
phy-generic.c usb: patches for v4.9 merge window 2016-09-14 20:37:50 +02:00
phy-generic.h usb: phy: generic: add vbus support 2015-01-12 12:13:29 -06:00
phy-gpio-vbus-usb.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
phy-isp1301-omap.c usb: isp1301-omap: mark power_up as __maybe_unused 2016-03-04 15:14:30 +02:00
phy-isp1301.c usb: phy: isp1301: Export I2C module alias information 2015-09-21 14:42:36 -05:00
phy-keystone.c usb: phy: phy-keystone: Simplify return statement 2015-08-04 11:02:05 -05:00
phy-msm-usb.c usb: phy: move msm_hsusb.h into driver 2016-06-21 11:12:10 +03:00
phy-mv-usb.c usb: phy: mv-usb: fix usb_phy build errors 2015-01-13 09:32:22 -06:00
phy-mv-usb.h usb: otg: mv_otg: remove unused clock 2013-04-02 11:42:45 +03:00
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 usb: phy: qcom: use PTR_ERR_OR_ZERO() 2016-04-14 09:24:38 +03:00
phy-tahvo.c usb: phy: tahvo: Use devm_extcon_dev_[allocate|register]() and replace deprecated API 2015-07-29 09:59:18 -05:00
phy-tegra-usb.c usb: common: of_usb_get_dr_mode to usb_get_dr_mode 2015-09-27 10:54:31 -05:00
phy-twl6030-usb.c usb: phy: Check initial state for twl6030 2016-06-01 14:58:59 -07:00
phy-ulpi-viewport.c usb: Remove unnecessary semicolons 2013-10-11 16:26:46 -07:00
phy-ulpi.c usb: rename phy to usb_phy in OTG 2014-11-03 10:01:25 -06:00
phy.c usb: phy: Add interface to get phy give of device_node. 2015-05-26 10:42:28 -05:00