Commit 94f7afdf authored by Simon Glass's avatar Simon Glass

dm: core: Ignore disabled devices when binding

We don't want to bind devices which should never be used.
Signed-off-by: Simon Glass's avatarSimon Glass <>
Reviewed-by: default avatarMasahiro Yamada <>
parent b9749eb5
......@@ -9,6 +9,7 @@
#include <common.h>
#include <errno.h>
#include <fdtdec.h>
#include <malloc.h>
#include <libfdt.h>
#include <dm/device.h>
......@@ -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))
if (!fdtdec_get_is_enabled(blob, offset)) {
dm_dbg(" - ignoring disabled device\n");
err = lists_bind_fdt(parent, blob, offset, NULL);
if (err && !ret)
ret = err;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment