From 51cb9275040b725b977de4ce709fe167ef169023 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Mon, 1 Oct 2018 12:37:19 +0200 Subject: [PATCH] ofnode: Replace of_n_addr_cells with of_n_size_cells The size should be decoded using of_n_size_cells(), make it so. Signed-off-by: Marek Vasut Cc: Simon Glass Cc: Tom Rini Reviewed-by: Simon Glass --- drivers/core/ofnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index 1e354803b0..beb72963b8 100644 --- a/drivers/core/ofnode.c +++ b/drivers/core/ofnode.c @@ -541,7 +541,7 @@ fdt_addr_t ofnode_get_addr_size(ofnode node, const char *property, if (!prop) return FDT_ADDR_T_NONE; na = of_n_addr_cells(np); - ns = of_n_addr_cells(np); + ns = of_n_size_cells(np); *sizep = of_read_number(prop + na, ns); return of_read_number(prop, na); } else { -- 2.39.5