]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - rtc/ds12887.c
Merge with git://www.denx.de/git/u-boot.git
[karo-tx-uboot.git] / rtc / ds12887.c
index 8b12893ce28c02edddd9655530362cc9c13cc2f9..84fecf0194036e005584f715c35bba31df2b2595 100644 (file)
@@ -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) && defined(CONFIG_CMD_DATE)
 
 #define RTC_SECONDS                    0x00
 #define RTC_SECONDS_ALARM              0x01
@@ -235,4 +235,4 @@ void rtc_reset (void)
        rtc_write(RTC_CONTROL_B,ctrl_rg);
 }
 
-#endif  /* (CONFIG_RTC_DS12887) && (CONFIG_COMMANDS & CFG_CMD_DATE) */
+#endif