summaryrefslogtreecommitdiff
path: root/common/usb_onboard_hub.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-10-06 13:20:24 -0600
committerTom Rini <trini@konsulko.com>2025-10-06 13:20:24 -0600
commit0eaa4b337336dbbe93395d1f2ccc18937eaafea2 (patch)
treec01e661d69181dceca68f56a4849a9bd04608521 /common/usb_onboard_hub.c
parente50b1e8715011def8aff1588081a2649a2c6cd47 (diff)
parent4e4a9de31de2a5f395ee25c59e4026422fbcb27e (diff)
Merge branch 'next'
Merge the outstanding changes from the 'next' branch to master.
Diffstat (limited to 'common/usb_onboard_hub.c')
-rw-r--r--common/usb_onboard_hub.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index 805b2ccbc00..6fc34489a98 100644
--- a/common/usb_onboard_hub.c
+++ b/common/usb_onboard_hub.c
@@ -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;
}