@@ -447,7 +447,7 @@ static void __init process_multiboot_node(const void *fdt, int node,
u32 address_cells, u32 size_cells)
{
const struct fdt_property *prop;
- const u32 *cell;
+ const __be32 *cell;
int nr;
struct dt_mb_module *mod;
int len;
@@ -465,9 +465,9 @@ static void __init process_multiboot_node(const void *fdt, int node,
if ( !prop )
early_panic("node %s missing `reg' property\n", name);
- cell = (const u32 *)prop->data;
- device_tree_get_reg(&cell, address_cells, size_cells,
- &mod->start, &mod->size);
+ cell = (const __be32 *)prop->data;
+ mod->start = dt_next_cell(address_cells, &cell);
+ mod->size = dt_next_cell(size_cells, &cell);
prop = fdt_get_property(fdt, node, "bootargs", &len);
if ( prop )
The function device_get_reg will be removed in a future patch. Signed-off-by: Julien Grall <julien.grall@linaro.org> --- xen/common/device_tree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)