]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/of/fdt.c
dt: add of_alias_scan and of_alias_get_id
[~shefty/rdma-dev.git] / drivers / of / fdt.c
index 65200af29c5242644dcd0221e67bbe7b0ace99b2..13d6d3a96b31939b5aafd8bfbc990cbb54a0981f 100644 (file)
@@ -707,10 +707,12 @@ void __init unflatten_device_tree(void)
        __unflatten_device_tree(initial_boot_params, &allnodes,
                                early_init_dt_alloc_memory_arch);
 
-       /* Get pointer to OF "/chosen" node for use everywhere */
+       /* Get pointer to "/chosen" and "/aliasas" nodes for use everywhere */
        of_chosen = of_find_node_by_path("/chosen");
        if (of_chosen == NULL)
                of_chosen = of_find_node_by_path("/chosen@0");
+       of_aliases = of_find_node_by_path("/aliases");
+       of_alias_scan();
 }
 
 #endif /* CONFIG_OF_EARLY_FLATTREE */