]> git.sur5r.net Git - u-boot/blobdiff - rtc/ds1337.c
Merge with /home/tur/git/u-boot#cm5200-si
[u-boot] / rtc / ds1337.c
index 9f0c8c01ef8c14a09e021ebdf47ca288247321eb..c636ac5948f718879a3bd11ebaa588d24a9dc856 100644 (file)
@@ -32,7 +32,7 @@
 #include <rtc.h>
 #include <i2c.h>
 
-#if defined(CONFIG_RTC_DS1337) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if defined(CONFIG_RTC_DS1337) && defined(CONFIG_CMD_DATE)
 
 /*---------------------------------------------------------------------*/
 #undef DEBUG_RTC
@@ -188,4 +188,4 @@ static unsigned char bin2bcd (unsigned int n)
        return (((n / 10) << 4) | (n % 10));
 }
 
-#endif /* CONFIG_RTC_DS1337 && (CFG_COMMANDS & CFG_CMD_DATE) */
+#endif