]> git.sur5r.net Git - u-boot/blobdiff - rtc/ds164x.c
rtc/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
[u-boot] / rtc / ds164x.c
index 3f329c73cc27cdb0e0c3d785c7c5fcccea80fc81..36a0fb44fdab6a901533446e7d1fc6c156a24c22 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * (C) Copyright 2002
  * ARIO Data Networks, Inc. dchiu@ariodata.com
- * 
+ *
  * modified for DS164x:
  * The LEOX team <team@leox.org>, http://www.leox.org
  *
@@ -37,7 +37,7 @@
 #include <rtc.h>
 
 
-#if defined(CONFIG_RTC_DS164x) && (CONFIG_COMMANDS & CFG_CMD_DATE)
+#if defined(CONFIG_RTC_DS164x) && ((CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_CMD_DATE))
 
 static uchar    rtc_read(unsigned int addr );
 static void     rtc_write(unsigned int addr, uchar val);