eeprom: fix DM_I2C support without CONFIG_SYS_I2C_EEPROM_BUS
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Tue, 26 Mar 2019 12:38:52 +0000 (13:38 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 24 Apr 2019 22:00:49 +0000 (00:00 +0200)
commit4f25617758b2e768e6579202269180c5b7a817eb
treea4273c37d73b13f031351733975e8aec0eaf442f
parenta339f5249d6ad5ea8201d7513c05fa580244dabd
eeprom: fix DM_I2C support without CONFIG_SYS_I2C_EEPROM_BUS

The current device model enabled eeprom code only works if
CONFIG_SYS_I2C_EEPROM_BUS is set.

This patch makes it work without that define so that the bus
number passed to 'eeprom_init' is used.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
cmd/eeprom.c