]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cmd/eeprom.c
cmd: eeprom: add bus switching support for all i2c drivers
[people/ms/u-boot.git] / cmd / eeprom.c
index e5457ba0cf44d82344517a1b9b4fbaa1d1853f96..208b4138c116ae421098497fff854da9847b48e0 100644 (file)
@@ -72,7 +72,7 @@ void eeprom_init(int bus)
 #endif
 
        /* I2C EEPROM */
-#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT)
+#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C)
 #if defined(CONFIG_SYS_I2C)
        if (bus >= 0)
                i2c_set_bus_num(bus);