summaryrefslogtreecommitdiffstats
path: root/rtc/m48t35ax.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtc/m48t35ax.c')
-rw-r--r--rtc/m48t35ax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtc/m48t35ax.c b/rtc/m48t35ax.c
index 6c38a538b9..0a0ffa8aac 100644
--- a/rtc/m48t35ax.c
+++ b/rtc/m48t35ax.c
@@ -33,7 +33,7 @@
#include <rtc.h>
#include <config.h>
-#if defined(CONFIG_RTC_M48T35A) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if defined(CONFIG_RTC_M48T35A) && defined(CONFIG_CMD_DATE)
static uchar rtc_read (uchar reg);
static void rtc_write (uchar reg, uchar val);
@@ -163,4 +163,4 @@ static unsigned char bin2bcd (unsigned int n)
return (((n / 10) << 4) | (n % 10));
}
-#endif /* CONFIG_RTC_M48T35A && CFG_CMD_DATE */
+#endif
OpenPOWER on IntegriCloud