]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MX51: vision: Let video mode struct be independant of watchdog.
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 10 May 2011 07:50:46 +0000 (07:50 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 23 May 2011 06:36:46 +0000 (08:36 +0200)
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.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/ttcontrol/vision2/vision2.c

index f8ef4fc9c5134dfa23881150096f08a9cf4f8a0e..0a3789cacc0902efc30400d53a921a9a212ab354 100644 (file)
@@ -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;