]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - rtc/ds174x.c
rtc/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
[karo-tx-uboot.git] / rtc / ds174x.c
index 58b13e9daa18a666add82e404f025bcf7eb128d1..5261e54c187b435242834edc3502efe71a415844 100644 (file)
@@ -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);