Fix some build errors.
authorWolfgang Denk <wd@denx.de>
Sun, 19 Aug 2007 08:27:34 +0000 (10:27 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 19 Aug 2007 08:27:34 +0000 (10:27 +0200)
Signed-off-by: Wolfgang Denk <wd@denx.de>
drivers/net/mcffec.c
drivers/serial/mcfuart.c
rtc/mcfrtc.c

index 2e0ddeb..3b81258 100644 (file)
 #include <common.h>
 #include <malloc.h>
 
+#ifdef CONFIG_MCFFEC
+
 #include <asm/fec.h>
 #include <asm/immap.h>
 
 #include <command.h>
-#include <config.h>
 #include <net.h>
 #include <miiphy.h>
 
-#ifdef CONFIG_MCFFEC
 #undef ET_DEBUG
 #undef MII_DEBUG
 
index bc7077d..88f3eb1 100644 (file)
  */
 
 #include <common.h>
+
+#ifdef CONFIG_MCFUART
+
 #include <asm/immap.h>
 #include <asm/uart.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifdef CONFIG_MCFUART
 extern void uart_port_conf(void);
 
 int serial_init(void)
index 76bb510..27386e5 100644 (file)
  */
 
 #include <common.h>
+
+#if defined(CONFIG_MCFRTC) && defined(CONFIG_CMD_DATE)
+
 #include <command.h>
 #include <rtc.h>
-
 #include <asm/immap.h>
 #include <asm/rtc.h>
 
-#if defined(CONFIG_MCFRTC) && defined(CONFIG_CMD_DATE)
-
 #undef RTC_DEBUG
 
 #ifndef CFG_MCFRTC_BASE