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