]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - rtc/mc146818.c
Merge with git://www.denx.de/git/u-boot.git
[karo-tx-uboot.git] / rtc / mc146818.c
index 20b1b3e77022a6b5d88112e7dcea5da407f816b6..ab377ed73e567d985d6423600cc074cff475e603 100644 (file)
@@ -31,7 +31,7 @@
 #include <command.h>
 #include <rtc.h>
 
-#if defined(CONFIG_RTC_MC146818) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if defined(CONFIG_RTC_MC146818) && defined(CONFIG_CMD_DATE)
 
 static uchar rtc_read  (uchar reg);
 static void  rtc_write (uchar reg, uchar val);
@@ -175,4 +175,4 @@ static unsigned char bin2bcd (unsigned int n)
        return (((n / 10) << 4) | (n % 10));
 }
 
-#endif /* CONFIG_RTC_MC146818 && CFG_CMD_DATE */
+#endif