summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-19 02:09:07 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-01 13:03:08 (GMT)
commit45a26867e8158d0338ba5b99d21989a72d423209 (patch)
tree76f30778dcb4a8d50eeea20e2bc68d2ab731c41c /drivers/usb
parentf5b5719cdf13f3ee1ae949a3bcffafb6431eead4 (diff)
downloadu-boot-45a26867e8158d0338ba5b99d21989a72d423209.tar.xz
dm: core: Update device_bind_driver_to_node() to use ofnode
Adjust this function to us an ofnode instead of an offset, so it can be used with livetree. This involves updating all callers. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb-new/ti-musb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c
index 27018c7..de10131 100644
--- a/drivers/usb/musb-new/ti-musb.c
+++ b/drivers/usb/musb-new/ti-musb.c
@@ -227,7 +227,7 @@ static int ti_musb_wrapper_bind(struct udevice *parent)
case USB_DR_MODE_HOST:
/* Bind MUSB host */
ret = device_bind_driver_to_node(parent, "ti-musb-host",
- name, node, &dev);
+ name, offset_to_ofnode(node), &dev);
if (ret) {
error("musb - not able to bind usb host node\n");
return ret;