drivers/rtc/rtc-mc13xxx.c: move probe and remove callbacks to .init.text and .exit...
[deliverable/linux.git] / drivers / of / fdt.c
index 65200af29c5242644dcd0221e67bbe7b0ace99b2..aeec35bc3789662f350de2ffdd5ebd6e9f0acf8d 100644 (file)
@@ -707,10 +707,8 @@ 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 */
-       of_chosen = of_find_node_by_path("/chosen");
-       if (of_chosen == NULL)
-               of_chosen = of_find_node_by_path("/chosen@0");
+       /* Get pointer to "/chosen" and "/aliasas" nodes for use everywhere */
+       of_alias_scan(early_init_dt_alloc_memory_arch);
 }
 
 #endif /* CONFIG_OF_EARLY_FLATTREE */
This page took 0.024399 seconds and 5 git commands to generate.