aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/pdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/pdt.c')
-rw-r--r--drivers/of/pdt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/of/pdt.c b/drivers/of/pdt.c
index 07cc1d678e4d..37b56fd716e6 100644
--- a/drivers/of/pdt.c
+++ b/drivers/of/pdt.c
@@ -241,15 +241,15 @@ void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops)
241 BUG_ON(!ops); 241 BUG_ON(!ops);
242 of_pdt_prom_ops = ops; 242 of_pdt_prom_ops = ops;
243 243
244 allnodes = of_pdt_create_node(root_node, NULL); 244 of_allnodes = of_pdt_create_node(root_node, NULL);
245#if defined(CONFIG_SPARC) 245#if defined(CONFIG_SPARC)
246 allnodes->path_component_name = ""; 246 of_allnodes->path_component_name = "";
247#endif 247#endif
248 allnodes->full_name = "/"; 248 of_allnodes->full_name = "/";
249 249
250 nextp = &allnodes->allnext; 250 nextp = &of_allnodes->allnext;
251 allnodes->child = of_pdt_build_tree(allnodes, 251 of_allnodes->child = of_pdt_build_tree(of_allnodes,
252 of_pdt_prom_ops->getchild(allnodes->phandle), &nextp); 252 of_pdt_prom_ops->getchild(of_allnodes->phandle), &nextp);
253 253
254 /* Get pointer to "/chosen" and "/aliasas" nodes for use everywhere */ 254 /* Get pointer to "/chosen" and "/aliasas" nodes for use everywhere */
255 of_alias_scan(kernel_tree_alloc); 255 of_alias_scan(kernel_tree_alloc);