]> git.sur5r.net Git - u-boot/blobdiff - rtc/ds1374.c
rtc/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
[u-boot] / rtc / ds1374.c
index 31f06e587489008a847648a37e84d2f9302f32f4..b0dd9dc32e4351fd9f89525e92c66b3c1ce51140 100644 (file)
@@ -35,7 +35,7 @@
 #include <rtc.h>
 #include <i2c.h>
 
-#if (defined(CONFIG_RTC_DS1374)) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if (defined(CONFIG_RTC_DS1374)) && ((CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_CMD_DATE))
 
 /*---------------------------------------------------------------------*/
 #undef DEBUG_RTC
@@ -116,7 +116,7 @@ void rtc_get (struct rtc_time *tm){
 
        /*
         * Since the reads are being performed one byte at a time,
-        * there is a chance that a carry will occur during the read. 
+        * there is a chance that a carry will occur during the read.
         * To detect this, 2 reads are performed and compared.
         */
        limit = 10;