From: Simon Glass Date: Sun, 25 Jan 2015 15:27:16 +0000 (-0700) Subject: dm: core: Ignore disabled devices when binding X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=94f7afdf7e9909204d0005196db47cca2a28e4cb;p=u-boot.git dm: core: Ignore disabled devices when binding We don't want to bind devices which should never be used. Signed-off-by: Simon Glass Reviewed-by: Masahiro Yamada --- diff --git a/drivers/core/root.c b/drivers/core/root.c index a5b0a61501..73e3c7228e 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -92,6 +93,10 @@ int dm_scan_fdt_node(struct udevice *parent, const void *blob, int offset, if (pre_reloc_only && !fdt_getprop(blob, offset, "u-boot,dm-pre-reloc", NULL)) continue; + if (!fdtdec_get_is_enabled(blob, offset)) { + dm_dbg(" - ignoring disabled device\n"); + continue; + } err = lists_bind_fdt(parent, blob, offset, NULL); if (err && !ret) ret = err;