]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - rtc/rs5c372.c
rtc/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
[karo-tx-uboot.git] / rtc / rs5c372.c
index b56808b8baeac76719f40f6d18de53dde6635f15..6e1171024c774d0e8fc1bae8448ed9d325916cb6 100644 (file)
@@ -34,7 +34,7 @@
 #include <rtc.h>
 #include <i2c.h>
 
-#if defined(CONFIG_RTC_RS5C372A) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if defined(CONFIG_RTC_RS5C372A) && ((CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_CMD_DATE))
 /*
  * Reads are always done starting with register 15, which requires some
  * jumping-through-hoops to access the data correctly.