Bugfix: make bootm+libfdt compile on boards with no flash
[oweals/u-boot.git] / common / cmd_dtt.c
index 4f7b049d792c60be7f78811559c458055ada3ca7..8da95bf9d39385d486634a34a9388cfcc823751e 100644 (file)
@@ -25,7 +25,7 @@
 #include <config.h>
 #include <command.h>
 
-#if (CONFIG_COMMANDS & CFG_CMD_DTT)
+#if defined(CONFIG_CMD_DTT)
 
 #include <dtt.h>
 #include <i2c.h>
@@ -61,4 +61,4 @@ U_BOOT_CMD(
          "        - Read temperature from digital thermometer and thermostat.\n"
 );
 
-#endif /* CONFIG_COMMANDS & CFG_CMD_DTT */
+#endif