projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9481c80
)
dm: core: Fix translate condition in ofnode_get_addr_size()
author
Simon Glass
<sjg@chromium.org>
Fri, 26 Apr 2019 03:58:36 +0000
(21:58 -0600)
committer
Bin Meng
<bmeng.cn@gmail.com>
Wed, 8 May 2019 04:44:07 +0000
(12:44 +0800)
Update the condition to translate only if this is enabled for SPL.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/ofnode.c
patch
|
blob
|
history
diff --git
a/drivers/core/ofnode.c
b/drivers/core/ofnode.c
index 785f5c3acf7a7bb06a7986fdcdac699c71eca33f..cc0c031e0d7a359d871baf7b04f8d7ffa48fa021 100644
(file)
--- a/
drivers/core/ofnode.c
+++ b/
drivers/core/ofnode.c
@@
-546,7
+546,7
@@
fdt_addr_t ofnode_get_addr_size(ofnode node, const char *property,
ns = of_n_size_cells(np);
*sizep = of_read_number(prop + na, ns);
- if (
IS_ENABLED(CONFIG_
OF_TRANSLATE) && ns > 0)
+ if (
CONFIG_IS_ENABLED(
OF_TRANSLATE) && ns > 0)
return of_translate_address(np, prop);
else
return of_read_number(prop, na);