summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/net/mcffec.c4
-rw-r--r--drivers/serial/mcfuart.c4
-rw-r--r--rtc/mcfrtc.c6
3 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c
index 2e0ddeb..3b81258 100644
--- a/drivers/net/mcffec.c
+++ b/drivers/net/mcffec.c
@@ -27,15 +27,15 @@
#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
diff --git a/drivers/serial/mcfuart.c b/drivers/serial/mcfuart.c
index bc7077d..88f3eb1 100644
--- a/drivers/serial/mcfuart.c
+++ b/drivers/serial/mcfuart.c
@@ -28,12 +28,14 @@
*/
#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)
diff --git a/rtc/mcfrtc.c b/rtc/mcfrtc.c
index 76bb510..27386e5 100644
--- a/rtc/mcfrtc.c
+++ b/rtc/mcfrtc.c
@@ -22,14 +22,14 @@
*/
#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