diff options
author | Sukrut Bellary <sbellary@baylibre.com> | 2024-11-12 14:57:38 -0800 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2024-11-13 15:28:13 -0600 |
commit | 6712d8ef720ed75486d2c7298f87fc4c6f92d45c (patch) | |
tree | b84998e2534027625fd9d77ed212664966e84826 | |
parent | 75c25c53daf315b6237033fa9ec9d19ae152a7f3 (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.c | 2 |
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; |