summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-04-01 18:01:56 +0800
committerJosh Wu <josh.wu@atmel.com>2012-09-25 16:19:32 +0800
commitb8742512257922be16e06ed861c061bb303b7fe3 (patch)
treed2e51a191f23495008befc556cb32c530a4aa8ce /board
parent739b3885c18acc1ac121db0f57d9a1c55c7662b4 (diff)
LCDC: using has_lcdc() function to avoid error register
Diffstat (limited to 'board')
-rw-r--r--board/atmel/at91sama5ek/at91sama5ek.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/atmel/at91sama5ek/at91sama5ek.c b/board/atmel/at91sama5ek/at91sama5ek.c
index 9c7ca3ffea..b593d796b4 100644
--- a/board/atmel/at91sama5ek/at91sama5ek.c
+++ b/board/atmel/at91sama5ek/at91sama5ek.c
@@ -255,7 +255,8 @@ int board_init(void)
at91sama5ek_gmacb_hw_init();
#endif
#ifdef CONFIG_LCD
- at91sama5ek_lcd_hw_init();
+ if (has_lcdc())
+ at91sama5ek_lcd_hw_init();
#endif
return 0;
}