mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
dm: core: Fix translate condition in ofnode_get_addr_size()
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>
This commit is contained in:
parent
9481c80f55
commit
003331827a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue