[U-Boot] [PATCH 2/2 v2] exynos5420: fix compilation without parade video

Sjoerd Simons sjoerd.simons at collabora.co.uk
Thu Nov 27 16:08:01 CET 2014


Not all exynos 5420 based devices with an LCD also have a parade LVDS
bridge. So make sure compilation doesn't break if CONFIG_LCD is enabled
and CONFIG_VIDEO_PARADE is not.

Signed-off-by: Sjoerd Simons <sjoerd.simons at collabora.co.uk>
---
 Changes since V1: New patch

 arch/arm/include/asm/arch-exynos/system.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/include/asm/arch-exynos/system.h b/arch/arm/include/asm/arch-exynos/system.h
index 320763f..dd68290 100644
--- a/arch/arm/include/asm/arch-exynos/system.h
+++ b/arch/arm/include/asm/arch-exynos/system.h
@@ -42,6 +42,10 @@ void set_system_display_ctrl(void);
 int exynos_lcd_early_init(const void *blob);
 
 /* Initialize the Parade dP<->LVDS bridge if present */
+#ifdef CONFIG_VIDEO_PARADE
 int parade_init(const void *blob);
+#else
+static inline int parade_init(const void *blob) { return -1; }
+#endif
 
 #endif	/* _EXYNOS4_SYSTEM_H */
-- 
2.1.3



More information about the U-Boot mailing list