mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
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 <marek.vasut+renesas@gmail.com> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
11ae93eef4
commit
51cb927504
1 changed files with 1 additions and 1 deletions
|
@ -541,7 +541,7 @@ fdt_addr_t ofnode_get_addr_size(ofnode node, const char *property,
|
||||||
if (!prop)
|
if (!prop)
|
||||||
return FDT_ADDR_T_NONE;
|
return FDT_ADDR_T_NONE;
|
||||||
na = of_n_addr_cells(np);
|
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);
|
*sizep = of_read_number(prop + na, ns);
|
||||||
return of_read_number(prop, na);
|
return of_read_number(prop, na);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue