]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: colibri_vf: fix compiling warning
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>
Fri, 23 Jul 2021 06:39:49 +0000 (09:39 +0300)
committerStefano Babic <sbabic@denx.de>
Mon, 9 Aug 2021 11:09:29 +0000 (13:09 +0200)
This patch fixes the following compiler warning:
=============
board/toradex/colibri_vf/colibri_vf.c: In function 'ft_board_setup':
board/toradex/colibri_vf/colibri_vf.c:436:6: warning: unused variable 'ret' [-Wunused-variable]
=============

Fixes: be3f1a56bf8 ("video: fsl_dcu_fb: add DM_VIDEO support")
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
board/toradex/colibri_vf/colibri_vf.c

index e9c5bc0632233a008005a171ea02ba58e9b8e647..c09591e5436597affebfc74b4786b16010a8f159 100644 (file)
@@ -433,7 +433,7 @@ int checkboard(void)
 #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
 int ft_board_setup(void *blob, struct bd_info *bd)
 {
-#ifndef CONFIG_DM_VIDEO
+#if defined(CONFIG_VIDEO_FSL_DCU_FB) && !defined(CONFIG_DM_VIDEO)
        int ret = 0;
 #endif
 #ifdef CONFIG_FDT_FIXUP_PARTITIONS