From: Marek Vasut Date: Mon, 1 Oct 2018 10:37:19 +0000 (+0200) Subject: ofnode: Replace of_n_addr_cells with of_n_size_cells X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=51cb9275040b725b977de4ce709fe167ef169023;p=u-boot.git 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 --- 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 {