Skip to contentSkip to conversation

MX51: vision: Let video mode struct be independant of watchdog.

PATCH New Fabio Estevam 2 participants 2 messages May 10, 2011 – May 15, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MX51: vision: Let video mode struct be independant of watchdog.

Currently the fb_videomode struct is only declared if CONFIG_HW_WATCHDOG is defined.

Remove this dependancy and let the video struct always be declared.

---
 board/ttcontrol/vision2/vision2.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
board/ttcontrol/vision2/vision2.c +2 -3
index f8ef4fc..0a3789c 100644
@@ -45,9 +45,6 @@ static u32 system_rev;
 
 extern int mx51_fb_init(struct fb_videomode *mode);
 
-#ifdef CONFIG_HW_WATCHDOG
-#include <watchdog.h>
-
 static struct fb_videomode nec_nl6448bc26_09c = {
 	"NEC_NL6448BC26-09C",
 	60,	/* Refresh */
@@ -65,6 +62,8 @@ static struct fb_videomode nec_nl6448bc26_09c = {
 	0,	/* flag */
 };
 
+#ifdef CONFIG_HW_WATCHDOG
+#include <watchdog.h>
 void hw_watchdog_reset(void)
 {
 	int val;
Signature · 1 line
1.6.0.4
#1 lore raw

PATCH 1/1 MX51: vision: Let video mode struct be independant of watchdog.

Quoted 6 lines · Fabio Estevam

Currently the fb_videomode struct is only declared if CONFIG_HW_WATCHDOG is defined.

Remove this dependancy and let the video struct always be declared.

---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================