ColdFire: MCF5329 Update and cleanup
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
diff --git a/rtc/mcfrtc.c b/rtc/mcfrtc.c
index 0be5874..76bb510 100644
--- a/rtc/mcfrtc.c
+++ b/rtc/mcfrtc.c
@@ -28,7 +28,7 @@
#include <asm/immap.h>
#include <asm/rtc.h>
-#if defined(CONFIG_MCFRTC) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if defined(CONFIG_MCFRTC) && defined(CONFIG_CMD_DATE)
#undef RTC_DEBUG
@@ -118,4 +118,4 @@
rtc->cr |= RTC_CR_SWR;
}
-#endif /* CONFIG_MCFRTC && CFG_CMD_DATE */
+#endif /* CONFIG_MCFRTC && CONFIG_CMD_DATE */