forked from OERV-BSP/u-boot
Merge branch 'next' of git://source.denx.de/u-boot-usb into next
- Make the i2c-bus property for an onboard USB hub optional
This commit is contained in:
@@ -61,8 +61,13 @@ static int usb5744_i2c_init(struct udevice *dev)
|
||||
int ret, slave_addr;
|
||||
|
||||
ret = dev_read_phandle_with_args(dev, "i2c-bus", NULL, 0, 0, &phandle);
|
||||
if (ret == -ENOENT) {
|
||||
dev_dbg(dev, "i2c-bus not specified\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (ret) {
|
||||
dev_err(dev, "i2c-bus not specified\n");
|
||||
dev_err(dev, "i2c-bus read failed\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user