diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-05 17:10:09 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-07-27 14:15:07 -0600 |
commit | 2e3f1ff63f50f36e74d46f939823241856ebf1bd (patch) | |
tree | 09700299a68afb9e9ddd02583f30c81a786a3fb2 /drivers/misc | |
parent | cc7f66f70cc2c59fe8ebf9011658447815278894 (diff) | |
download | u-boot-2e3f1ff63f50f36e74d46f939823241856ebf1bd.tar.gz |
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 <sjg@chromium.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/cros_ec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index e3229efed0..f50e73fea6 100644 --- a/drivers/misc/cros_ec.c +++ b/drivers/misc/cros_ec.c @@ -26,7 +26,6 @@ #include <asm/io.h> #include <asm-generic/gpio.h> #include <dm/device-internal.h> -#include <dm/root.h> #include <dm/uclass-internal.h> #ifdef DEBUG_TRACE @@ -1453,7 +1452,7 @@ static int do_cros_ec(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) int cros_ec_post_bind(struct udevice *dev) { /* Scan for available EC devices (e.g. I2C tunnel) */ - return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false); + return dm_scan_fdt_dev(dev); } U_BOOT_CMD( |