From: Simon Glass Date: Fri, 26 Apr 2019 03:58:36 +0000 (-0600) Subject: dm: core: Fix translate condition in ofnode_get_addr_size() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=003331827a1c7c97ea5b2e29961858e004a485e1;p=u-boot.git 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 Reviewed-by: Bin Meng --- diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index 785f5c3acf..cc0c031e0d 100644 --- 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);