From: Kishon Vijay Abraham I Date: Fri, 25 Jan 2013 02:33:25 +0000 (+0530) Subject: usb: otg: add device tree support to otg library X-Git-Tag: v3.9-rc1~126^2~42^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d3c28b5a42df5ceaa854901ba2cccb76883c77e;p=pandora-kernel.git 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 Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed