summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-08-01 17:17:23 +0300
committerTom Rini <trini@konsulko.com>2023-08-01 17:17:23 +0300
commitaaeaef253619d06bfac32ff7faabaf16728f55e8 (patch)
tree9c9a09837432cac643f7cf123f08674627684b28 /drivers
parent4e619e8d4fd68095bc665a78f2651d8e478a4534 (diff)
parent5c1c6b7306f2b4c0fd50c7cb5d757e245b93606e (diff)
downloadu-boot-aaeaef253619d06bfac32ff7faabaf16728f55e8.tar.xz
Merge https://source.denx.de/u-boot/custodians/u-boot-marvell
- i2c-gpio: Correctly handle new {sda, scl}-gpios bindings (Chris) - mvebu: x240: Use i2c-gpio instead of built in controller (Chris)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/i2c-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-gpio.c b/drivers/i2c/i2c-gpio.c
index 4ed9e9e7cd..c1fc290bd2 100644
--- a/drivers/i2c/i2c-gpio.c
+++ b/drivers/i2c/i2c-gpio.c
@@ -339,7 +339,7 @@ static int i2c_gpio_of_to_plat(struct udevice *dev)
/* "gpios" is deprecated and replaced by "sda-gpios" + "scl-gpios". */
ret = gpio_request_list_by_name(dev, "gpios", bus->gpios,
ARRAY_SIZE(bus->gpios), 0);
- if (ret == -ENOENT) {
+ if (ret == 0) {
ret = gpio_request_by_name(dev, "sda-gpios", 0,
&bus->gpios[PIN_SDA], 0);
if (ret < 0)