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-Tag: v2018.11-rc2~7^2~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=51cb9275040b725b977de4ce709fe167ef169023;p=oweals%2Fu-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 {