]> git.sur5r.net Git - u-boot/commitdiff
i2c: Enable "old" i2c commands even when CONFIG_I2C_CMD_TREE is defined
authorStefan Roese <sr@denx.de>
Wed, 28 Mar 2007 12:52:12 +0000 (14:52 +0200)
committerStefan Roese <sr@denx.de>
Wed, 28 Mar 2007 12:52:12 +0000 (14:52 +0200)
The "old" i2c commands (iprobe, imd...) are now compiled in again,
even when the i2c command tree is enabled via the CONFIG_I2C_CMD_TREE
config option.

Signed-off-by: Stefan Roese <sr@denx.de>
common/cmd_i2c.c

index 34571ee73b8e82d36fbcf2007bee4459adf1d8a2..755810d590419c4c5de528a1947a0111ca11d117 100644 (file)
@@ -969,7 +969,7 @@ U_BOOT_CMD(
        "i2c sdram chip - print SDRAM configuration information\n"
 #endif  /* CFG_CMD_SDRAM */
 );
-#else /* CONFIG_I2C_CMD_TREE */
+#endif /* CONFIG_I2C_CMD_TREE */
 U_BOOT_CMD(
        imd,    4,      1,      do_i2c_md,              \
        "imd     - i2c memory display\n",                               \
@@ -1024,6 +1024,5 @@ U_BOOT_CMD(
        "      (valid chip values 50..57)\n"
 );
 #endif
-#endif  /* CONFIG_I2C_CMD_TREE */
 
 #endif /* CFG_CMD_I2C */