mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 04:51:17 +02:00
libfdt: use CONFIG_IS_ENABLED for OF_LIBFDT
Use CONFIG_IS_ENABLED() macro to check whether OF_TRANSLATE is enabled, so that code block is compiled irrespective of SPL or U-Boot build and fdt address translation is used. Signed-off-by: Vignesh R <vigneshr@ti.com>
This commit is contained in:
@@ -112,7 +112,7 @@ fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
|
|||||||
return FDT_ADDR_T_NONE;
|
return FDT_ADDR_T_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_OF_LIBFDT)
|
#if CONFIG_IS_ENABLED(OF_TRANSLATE)
|
||||||
if (translate)
|
if (translate)
|
||||||
addr = fdt_translate_address(blob, node, prop_addr);
|
addr = fdt_translate_address(blob, node, prop_addr);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user