summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVignesh R <vigneshr@ti.com>2017-03-20 10:04:38 +0530
committerSimon Glass <sjg@chromium.org>2017-03-26 13:22:58 -0600
commit5efa1bfbfa871f5bc3f07357088e8cf3c19e6f61 (patch)
tree9c128be253ac07428ab01a35b9297d254e419c8e /lib
parent27cb7300ffda7a3f1581f0f5a2d3bfe59b97ad67 (diff)
downloadu-boot-5efa1bfbfa871f5bc3f07357088e8cf3c19e6f61.tar.gz
u-boot-5efa1bfbfa871f5bc3f07357088e8cf3c19e6f61.tar.xz
u-boot-5efa1bfbfa871f5bc3f07357088e8cf3c19e6f61.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 81f47ef2c7..1edfbf2d39 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -112,7 +112,7 @@ fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
return FDT_ADDR_T_NONE;
}
-#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_OF_LIBFDT)
+#if CONFIG_IS_ENABLED(OF_TRANSLATE)
if (translate)
addr = fdt_translate_address(blob, node, prop_addr);
else