]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - rtc/m48t35ax.c
Merge with git://www.denx.de/git/u-boot.git
[karo-tx-uboot.git] / rtc / m48t35ax.c
index 6c38a538b9f46af638dc39cb883bd8a949dbfe8a..0a0ffa8aac12fd9844037c78e91f947ea790a853 100644 (file)
@@ -33,7 +33,7 @@
 #include <rtc.h>
 #include <config.h>
 
-#if defined(CONFIG_RTC_M48T35A) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if defined(CONFIG_RTC_M48T35A) && defined(CONFIG_CMD_DATE)
 
 static uchar rtc_read  (uchar reg);
 static void  rtc_write (uchar reg, uchar val);
@@ -163,4 +163,4 @@ static unsigned char bin2bcd (unsigned int n)
        return (((n / 10) << 4) | (n % 10));
 }
 
-#endif /* CONFIG_RTC_M48T35A && CFG_CMD_DATE */
+#endif