diff options
Diffstat (limited to 'drivers/of/pdt.c')
-rw-r--r-- | drivers/of/pdt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/of/pdt.c b/drivers/of/pdt.c index 4d87b5dc9284..bc5b3990f6ed 100644 --- a/drivers/of/pdt.c +++ b/drivers/of/pdt.c | |||
@@ -229,6 +229,11 @@ static struct device_node * __init of_pdt_build_tree(struct device_node *parent, | |||
229 | return ret; | 229 | return ret; |
230 | } | 230 | } |
231 | 231 | ||
232 | static void *kernel_tree_alloc(u64 size, u64 align) | ||
233 | { | ||
234 | return prom_early_alloc(size); | ||
235 | } | ||
236 | |||
232 | void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops) | 237 | void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops) |
233 | { | 238 | { |
234 | struct device_node **nextp; | 239 | struct device_node **nextp; |
@@ -245,4 +250,7 @@ void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops) | |||
245 | nextp = &allnodes->allnext; | 250 | nextp = &allnodes->allnext; |
246 | allnodes->child = of_pdt_build_tree(allnodes, | 251 | allnodes->child = of_pdt_build_tree(allnodes, |
247 | of_pdt_prom_ops->getchild(allnodes->phandle), &nextp); | 252 | of_pdt_prom_ops->getchild(allnodes->phandle), &nextp); |
253 | |||
254 | /* Get pointer to "/chosen" and "/aliasas" nodes for use everywhere */ | ||
255 | of_alias_scan(kernel_tree_alloc); | ||
248 | } | 256 | } |