From 2e3f1ff63f50f36e74d46f939823241856ebf1bd Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 5 Jul 2016 17:10:09 -0600 Subject: dm: Convert users from dm_scan_fdt_node() to dm_scan_fdt_dev() This new function is more convenient for callers, and handles pre-relocation situations automatically. Signed-off-by: Simon Glass --- common/usb_hub.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'common/usb_hub.c') diff --git a/common/usb_hub.c b/common/usb_hub.c index 0f39c9faf7..26ee13e149 100644 --- a/common/usb_hub.c +++ b/common/usb_hub.c @@ -36,7 +36,6 @@ #include #endif #include -#include DECLARE_GLOBAL_DATA_PTR; @@ -758,7 +757,7 @@ int usb_hub_scan(struct udevice *hub) static int usb_hub_post_bind(struct udevice *dev) { /* Scan the bus for devices */ - return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false); + return dm_scan_fdt_dev(dev); } static int usb_hub_post_probe(struct udevice *dev) -- cgit v1.2.3