]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit372729913014aa9466279128bfe901aaf4a323be
treea4273c37d73b13f031351733975e8aec0eaf442f
parent12ceab59fd88c501e6b2eefccde6212436f70ba9
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