[U-Boot,V6,2/4] EXYNOS: Add dummy definition to fix compilation dependency on CONFIG_EXYNOS_MIPI_DSIM

Message ID 1357713746-13193-3-git-send-email-ajaykumar.rs@samsung.com
State Accepted
Delegated to: Minkyu Kang
Headers show

Commit Message

Ajay Kumar Jan. 9, 2013, 6:42 a.m.
When only DP is used, we need not enable CONFIG_EXYNOS_MIPI_DSIM.
But if we do not select CONFIG_EXYNOS_MIPI_DSIM, exynos_fb.c throws
error saying exynos_mipi_dsi_init() not defined. So, we add
dummy definition for exynos_mipi_dsi_init when CONFIG_EXYNOS_MIPI_DSIM
is not defined.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Donghwa Lee <dh09.lee@samsung.com>
Changes in V2:
 -- Make dummy definition for exynos_mipi_dsi_init as static.
Changes in V3:
 -- Added Changelog in commit message.
Changes in V6:
 -- Moved changelog to proper position

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


diff --git a/arch/arm/include/asm/arch-exynos/mipi_dsim.h b/arch/arm/include/asm/arch-exynos/mipi_dsim.h
index 9a7cbeb..c1c9a35 100644
--- a/arch/arm/include/asm/arch-exynos/mipi_dsim.h
+++ b/arch/arm/include/asm/arch-exynos/mipi_dsim.h
@@ -358,7 +358,14 @@  struct mipi_dsim_lcd_driver {
 	void	(*mipi_display_on)(struct mipi_dsim_device *dsim_dev);
 int exynos_mipi_dsi_init(void);
+static inline int exynos_mipi_dsi_init(void)
+	return 0;
  * register mipi_dsim_lcd_driver object defined by lcd panel driver