]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_dtt.c
UBI: Fix size parsing in "ubi create"
[u-boot] / common / cmd_dtt.c
index 804d467f251f3aaa13fd4c00e642454d23c67f3b..c5b1d4d8fd297f70a9942e5a37432524d288cc8f 100644 (file)
@@ -25,8 +25,6 @@
 #include <config.h>
 #include <command.h>
 
-#if defined(CONFIG_CMD_DTT)
-
 #include <dtt.h>
 #include <i2c.h>
 
@@ -38,7 +36,7 @@ int do_dtt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
        /* switch to correct I2C bus */
        old_bus = I2C_GET_BUS();
-       I2C_SET_BUS(CFG_DTT_BUS_NUM);
+       I2C_SET_BUS(CONFIG_SYS_DTT_BUS_NUM);
 
        /*
         * Loop through sensors, read
@@ -60,5 +58,3 @@ U_BOOT_CMD(
          "dtt     - Digital Thermometer and Thermostat\n",
          "        - Read temperature from digital thermometer and thermostat.\n"
 );
-
-#endif