]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - rtc/ds164x.c
Merge with git://www.denx.de/git/u-boot.git
[karo-tx-uboot.git] / rtc / ds164x.c
index 3cc76aba00940307a59c9f8bd3f9b9bb04b2da4f..bff22b9a058cdc34c5d63d5e1f91357066ea0bac 100644 (file)
@@ -37,7 +37,7 @@
 #include <rtc.h>
 
 
-#if defined(CONFIG_RTC_DS164x) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if defined(CONFIG_RTC_DS164x) && defined(CONFIG_CMD_DATE)
 
 static uchar    rtc_read(unsigned int addr );
 static void     rtc_write(unsigned int addr, uchar val);
@@ -197,4 +197,4 @@ static unsigned char bin2bcd (unsigned int n)
        return (((n / 10) << 4) | (n % 10));
 }
 
-#endif /* CONFIG_RTC_DS164x && CFG_CMD_DATE */
+#endif