projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11ae93e
)
ofnode: Replace of_n_addr_cells with of_n_size_cells
author
Marek Vasut
<marek.vasut@gmail.com>
Mon, 1 Oct 2018 10:37:19 +0000
(12:37 +0200)
committer
Simon Glass
<sjg@chromium.org>
Mon, 8 Oct 2018 13:34:34 +0000
(07:34 -0600)
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>
drivers/core/ofnode.c
patch
|
blob
|
history
diff --git
a/drivers/core/ofnode.c
b/drivers/core/ofnode.c
index 1e354803b06a13c5083c663468b4ada7568c71fd..beb72963b8b8464b697baa7da421f09c3a0b0124 100644
(file)
--- 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 {