]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_dtt.c
ppc/85xx: Fix inclusion of 83xx immap in 85xx builds
[karo-tx-uboot.git] / common / cmd_dtt.c
index 804d467f251f3aaa13fd4c00e642454d23c67f3b..3cfd36ef7389bf8f2c5cfad5feea95e41d95762c 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
@@ -57,8 +55,6 @@ int do_dtt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
 U_BOOT_CMD(
          dtt,  1,      1,      do_dtt,
-         "dtt     - Digital Thermometer and Thermostat\n",
-         "        - Read temperature from digital thermometer and thermostat.\n"
+         "Read temperature from Digital Thermometer and Thermostat",
+         ""
 );
-
-#endif