summaryrefslogtreecommitdiffstats
path: root/rtc/ds12887.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtc/ds12887.c')
-rw-r--r--rtc/ds12887.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtc/ds12887.c b/rtc/ds12887.c
index 8b12893ce2..60382a15d1 100644
--- a/rtc/ds12887.c
+++ b/rtc/ds12887.c
@@ -28,7 +28,7 @@
#include <config.h>
#include <rtc.h>
-#if defined(CONFIG_RTC_DS12887) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if defined(CONFIG_RTC_DS12887) && ((CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_CMD_DATE))
#define RTC_SECONDS 0x00
#define RTC_SECONDS_ALARM 0x01
OpenPOWER on IntegriCloud