Message ID | 20200107074557.20073-2-lokeshvutla@ti.com |
---|---|
State | Accepted |
Commit | 499681e15e7e7afcae78bdc100d6a753f9271094 |
Headers | show |
Series | board: ti: j721e: Enable I2C and EEPROM | expand |
diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c index 564d2f7046..cf6bd02698 100644 --- a/board/ti/common/board_detect.c +++ b/board/ti/common/board_detect.c @@ -91,7 +91,7 @@ static int __maybe_unused ti_i2c_eeprom_get(int bus_addr, int dev_addr, rc = uclass_get_device_by_seq(UCLASS_I2C, bus_addr, &bus); if (rc) return rc; - rc = i2c_get_chip(bus, dev_addr, 1, &dev); + rc = dm_i2c_probe(bus, dev_addr, 0, &dev); if (rc) return rc;