From: Nikita Kiryanov Date: Sat, 16 Apr 2016 14:55:02 +0000 (+0300) Subject: cmd: eeprom: add bus switching support for all i2c drivers X-Git-Tag: v2016.07-rc1~200 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2636ac65a84f2bbab4b6a773384cfc630b9b6d7b;p=u-boot cmd: eeprom: add bus switching support for all i2c drivers The i2c_init function is always provided when CONFIG_SYS_I2C is defined. No need to limit ourselves to just one supported I2C driver (soft_i2c). Update the #ifdef conditions to support bus switching for all I2C drivers. Cc: Heiko Schocher Cc: Marek Vasut Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- diff --git a/cmd/eeprom.c b/cmd/eeprom.c index e5457ba0cf..208b4138c1 100644 --- a/cmd/eeprom.c +++ b/cmd/eeprom.c @@ -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);