]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - rtc/m41t11.c
Fix bugs in the CONFIG_OF_LIBFDT
[karo-tx-uboot.git] / rtc / m41t11.c
index 11a1b086adaf6a1c8d3ad6cf1e2c37d9015bc9cb..81da33a31e1879d0a47c5e7290e12e5be308c37e 100644 (file)
@@ -23,6 +23,8 @@
  * can you believe a trademark on that?
  */
 
+/* #define DEBUG 1 */
+
 #include <common.h>
 #include <command.h>
 #include <rtc.h>
@@ -41,9 +43,7 @@
 #endif
 */
 
-#if defined(CONFIG_RTC_M41T11) && defined(CFG_I2C_RTC_ADDR) && (CONFIG_COMMANDS & CFG_CMD_DATE)
-
-#define DEBUG 1
+#if defined(CONFIG_RTC_M41T11) && defined(CFG_I2C_RTC_ADDR) && defined(CONFIG_CMD_DATE)
 
 static unsigned bcd2bin (uchar n)
 {
@@ -199,4 +199,4 @@ int rtc_recall(int addr, unsigned char* data, int size)
        return i2c_read( CFG_I2C_RTC_ADDR, REG_CNT+addr, 1, data, size );
 }
 
-#endif /* CONFIG_RTC_M41T11 && CFG_I2C_RTC_ADDR && CFG_CMD_DATE */
+#endif