]> git.baikalelectronics.ru Git - kernel.git/commit
usb: otg: add device tree support to otg library
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 25 Jan 2013 02:33:25 +0000 (08:03 +0530)
committerFelipe Balbi <balbi@ti.com>
Fri, 25 Jan 2013 08:20:14 +0000 (10:20 +0200)
commit5fb4cc882fee0282758230c01965d545c635070b
treeae1e50d90d5ce1e5925dd552971224f775b574f3
parentf7534f75bc0b1ce9ecf605480793d9ef032ecb6d
usb: otg: add device tree support to otg library

Added an API devm_usb_get_phy_by_phandle(), to get usb phy by passing a
device node phandle value. This function will return a pointer to
the phy on success, -EPROBE_DEFER if there is a device_node for the phandle,
but the phy has not been added, or a ERR_PTR() otherwise.

Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/otg/otg.c
include/linux/usb/phy.h