]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - rtc/pcf8563.c
rtc/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
[karo-tx-uboot.git] / rtc / pcf8563.c
index 05ae97eab8e3cba243d261ec7cca16a0d3275b96..1dacaa35ff29ee23a816f38dc72c8d46e7b958df 100644 (file)
@@ -32,7 +32,7 @@
 #include <rtc.h>
 #include <i2c.h>
 
-#if defined(CONFIG_RTC_PCF8563) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if defined(CONFIG_RTC_PCF8563) && ((CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_CMD_DATE))
 
 static uchar rtc_read  (uchar reg);
 static void  rtc_write (uchar reg, uchar val);