diff options
-rw-r--r-- | drivers/core/root.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/core/root.c b/drivers/core/root.c index cd6a5a0276..4ce55f9cc8 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c | |||
@@ -222,6 +222,16 @@ static int dm_scan_fdt_live(struct udevice *parent, | |||
222 | int ret = 0, err; | 222 | int ret = 0, err; |
223 | 223 | ||
224 | for (np = node_parent->child; np; np = np->sibling) { | 224 | for (np = node_parent->child; np; np = np->sibling) { |
225 | /* "chosen" node isn't a device itself but may contain some: */ | ||
226 | if (!strcmp(np->name, "chosen")) { | ||
227 | pr_debug("parsing subnodes of \"chosen\"\n"); | ||
228 | |||
229 | err = dm_scan_fdt_live(parent, np, pre_reloc_only); | ||
230 | if (err && !ret) | ||
231 | ret = err; | ||
232 | continue; | ||
233 | } | ||
234 | |||
225 | if (!of_device_is_available(np)) { | 235 | if (!of_device_is_available(np)) { |
226 | pr_debug(" - ignoring disabled device\n"); | 236 | pr_debug(" - ignoring disabled device\n"); |
227 | continue; | 237 | continue; |