From: Daniel Nehrkorn <[email protected]>

We need the EEPROM bus configuration, if we have the env located in EEPROM.
Since there is no eeprom_execute_command() anymore, we have to configure
it implicitly.

This reverts commit e3c2042ae7d188e00e48d984e373a2de505d8b77.

Signed-off-by: Daniel Nehrkorn <[email protected]>
---
 cmd/eeprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/eeprom.c b/cmd/eeprom.c
index cf89cfce3e4..ac7ed6f58bd 100644
--- a/cmd/eeprom.c
+++ b/cmd/eeprom.c
@@ -151,7 +151,7 @@ static int eeprom_rw(unsigned dev_addr, unsigned offset, 
uchar *buffer,
        int rcode = 0;
        uchar addr[3];
 
-#if !CONFIG_IS_ENABLED(DM_I2C) && defined(CONFIG_SYS_I2C_EEPROM_BUS)
+#if defined(CONFIG_SYS_I2C_EEPROM_BUS)
        eeprom_init(CONFIG_SYS_I2C_EEPROM_BUS);
 #endif
 
-- 
2.52.0

Reply via email to