diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-01-13 17:36:09 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-01-16 00:01:58 -0500 |
commit | 672c54466d24994eb9633f993862c89539504a42 (patch) | |
tree | e08f17e5fa260676912eb9b7d2263d47d667fdec /drivers | |
parent | 1b59be2a6cdcb5a12e18d8315c07c94a624de48f (diff) |
dt/flattree: Return virtual address from early_init_dt_alloc_memory_arch()
The physical address is never used by the device tree code when
allocating memory for unflattening. Change the architecture's alloc
hook to return the virutal address instead.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/of/fdt.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index c787c3d95c60..af824e7e0367 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c | |||
@@ -692,12 +692,6 @@ int __init early_init_dt_scan_chosen(unsigned long node, const char *uname, | |||
692 | return 1; | 692 | return 1; |
693 | } | 693 | } |
694 | 694 | ||
695 | static void *__init early_device_tree_alloc(u64 size, u64 align) | ||
696 | { | ||
697 | unsigned long mem = early_init_dt_alloc_memory_arch(size, align); | ||
698 | return __va(mem); | ||
699 | } | ||
700 | |||
701 | /** | 695 | /** |
702 | * unflatten_device_tree - create tree of device_nodes from flat blob | 696 | * unflatten_device_tree - create tree of device_nodes from flat blob |
703 | * | 697 | * |
@@ -709,7 +703,7 @@ static void *__init early_device_tree_alloc(u64 size, u64 align) | |||
709 | void __init unflatten_device_tree(void) | 703 | void __init unflatten_device_tree(void) |
710 | { | 704 | { |
711 | __unflatten_device_tree(initial_boot_params, &allnodes, | 705 | __unflatten_device_tree(initial_boot_params, &allnodes, |
712 | early_device_tree_alloc); | 706 | early_init_dt_alloc_memory_arch); |
713 | 707 | ||
714 | /* Get pointer to OF "/chosen" node for use everywhere */ | 708 | /* Get pointer to OF "/chosen" node for use everywhere */ |
715 | of_chosen = of_find_node_by_path("/chosen"); | 709 | of_chosen = of_find_node_by_path("/chosen"); |