]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - rtc/ds174x.c
Merge with git://www.denx.de/git/u-boot.git
[karo-tx-uboot.git] / rtc / ds174x.c
index 58b13e9daa18a666add82e404f025bcf7eb128d1..5f85a68170bb002560084b34a3c8949bef812c2f 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) && defined(CONFIG_CMD_DATE)
 
 static uchar rtc_read( unsigned int addr );
 static void  rtc_write( unsigned int addr, uchar val);
@@ -199,4 +199,4 @@ static unsigned char bin2bcd (unsigned int n)
        return (((n / 10) << 4) | (n % 10));
 }
 
-#endif /* CONFIG_RTC_MC146818 && CFG_CMD_DATE */
+#endif