diff options
author | Martin Stolpe <martinstolpe@gmail.com> | 2024-10-23 15:09:20 +0200 |
---|---|---|
committer | Peter Robinson <pbrobinson@gmail.com> | 2025-03-13 11:06:16 +0000 |
commit | 2d75c46be99c15fa186436c149b87ee97e0b8f44 (patch) | |
tree | cd7465ec54ebfdbf16aa29088d9c93887de5b96c | |
parent | 27e0160320c13168ab5d703c5ec4bec87a6d2700 (diff) |
rpi: Only add frame buffer node if CONFIG_FDT_SIMPLEFB is set
The functions fdt_simplefb_add_node and fdt_simplefb_enable_and_mem_rsv
are only available if CONFIG_FDT_SIMPLEFB is enabled.
Signed-off-by: Martin Stolpe <martin.stolpe@gmail.com>
Acked-by: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
-rw-r--r-- | board/raspberrypi/rpi/rpi.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 4d546892842..fe6153b388b 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -604,11 +604,13 @@ int ft_board_setup(void *blob, struct bd_info *bd) update_fdt_from_fw(blob, (void *)fw_dtb_pointer); - node = fdt_node_offset_by_compatible(blob, -1, "simple-framebuffer"); - if (node < 0) - fdt_simplefb_add_node(blob); - else - fdt_simplefb_enable_and_mem_rsv(blob); + if (CONFIG_IS_ENABLED(FDT_SIMPLEFB)) { + node = fdt_node_offset_by_compatible(blob, -1, "simple-framebuffer"); + if (node < 0) + fdt_simplefb_add_node(blob); + else + fdt_simplefb_enable_and_mem_rsv(blob); + } #ifdef CONFIG_EFI_LOADER /* Reserve the spin table */ |