summaryrefslogtreecommitdiff
path: root/rtc/ds174x.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtc/ds174x.c')
-rw-r--r--rtc/ds174x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtc/ds174x.c b/rtc/ds174x.c
index 58b13e9..5261e54 100644
--- a/rtc/ds174x.c
+++ b/rtc/ds174x.c
@@ -33,7 +33,7 @@
#include <command.h>
#include <rtc.h>
-#if defined(CONFIG_RTC_DS174x) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if defined(CONFIG_RTC_DS174x) && ((CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_CMD_DATE))
static uchar rtc_read( unsigned int addr );
static void rtc_write( unsigned int addr, uchar val);