From: Wolfgang Denk Date: Sun, 19 Aug 2007 08:27:34 +0000 (+0200) Subject: Fix some build errors. X-Git-Tag: v1.3.0-rc1~19^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3e66c078003607a7d1d214c15a5f262bc1b4032f;p=u-boot Fix some build errors. Signed-off-by: Wolfgang Denk --- diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c index 2e0ddeb777..3b812585b7 100644 --- a/drivers/net/mcffec.c +++ b/drivers/net/mcffec.c @@ -27,15 +27,15 @@ #include #include +#ifdef CONFIG_MCFFEC + #include #include #include -#include #include #include -#ifdef CONFIG_MCFFEC #undef ET_DEBUG #undef MII_DEBUG diff --git a/drivers/serial/mcfuart.c b/drivers/serial/mcfuart.c index bc7077de79..88f3eb10ab 100644 --- a/drivers/serial/mcfuart.c +++ b/drivers/serial/mcfuart.c @@ -28,12 +28,14 @@ */ #include + +#ifdef CONFIG_MCFUART + #include #include 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 76bb5107f6..27386e586a 100644 --- a/rtc/mcfrtc.c +++ b/rtc/mcfrtc.c @@ -22,14 +22,14 @@ */ #include + +#if defined(CONFIG_MCFRTC) && defined(CONFIG_CMD_DATE) + #include #include - #include #include -#if defined(CONFIG_MCFRTC) && defined(CONFIG_CMD_DATE) - #undef RTC_DEBUG #ifndef CFG_MCFRTC_BASE