Use defines for selecting commands instead of bitmask
[oweals/u-boot_mod.git] / u-boot / rtc / date.c
index bc947423c08c1d50bcb16f792471e5749e962e60..c6982272b66f9d6d5a24a2cc06e9664474d9fffb 100644 (file)
@@ -29,7 +29,7 @@
 #include <command.h>
 #include <rtc.h>
 
-#if (CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_TIMESTAMP)
+#if defined(CONFIG_CMD_DATE) || defined(CONFIG_TIMESTAMP)
 #define FEBRUARY                       2
 #define        STARTOFTIME                     1970
 #define SECDAY                         86400L
@@ -139,4 +139,4 @@ unsigned long mktime(unsigned int year, unsigned int mon, unsigned int day, unsi
        ) * 60 + sec; /* finally seconds */
 }
 
-#endif /* CFG_CMD_DATE */
+#endif /* CONFIG_CMD_DATE */