summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSukrut Bellary <sbellary@baylibre.com>2024-11-12 14:57:38 -0800
committerPraneeth Bajjuri <praneeth@ti.com>2024-11-13 15:28:13 -0600
commit6712d8ef720ed75486d2c7298f87fc4c6f92d45c (patch)
treeb84998e2534027625fd9d77ed212664966e84826
parent75c25c53daf315b6237033fa9ec9d19ae152a7f3 (diff)
include: Use CONFIG_IS_ENABLED(VIDEO) for fdt_add_fb_mem_rsv()
IF CONFIG_VIDEO is enabled, using IS_ENABLED() causes a build failure ../common/fdt_support.c: In function ‘fdt_add_fb_mem_rsv’: ../common/fdt_support.c:1983:15: error: ‘gd_t’ {aka ‘volatile struct global_data’} has no member named ‘video_bottom’ 1983 | if (gd->video_bottom == gd->video_top) So use CONFIG_IS_ENABLED(VIDEO) to fix it. Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
-rw-r--r--common/fdt_support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 0e2f12bd09c..39c7a90d2ce 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -1973,7 +1973,7 @@ int fdt_setup_simplefb_node(void *fdt, int node, u64 base_address, u32 width,
return 0;
}
-#if IS_ENABLED(CONFIG_VIDEO)
+#if CONFIG_IS_ENABLED(VIDEO)
int fdt_add_fb_mem_rsv(void *blob)
{
struct fdt_memory mem;