Signed-off-by: Antony Pavlov <antonynpav...@gmail.com>
---
 drivers/i2c/busses/i2c-gpio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c
index 5ab43fe935..7ccdb0b222 100644
--- a/drivers/i2c/busses/i2c-gpio.c
+++ b/drivers/i2c/busses/i2c-gpio.c
@@ -94,8 +94,8 @@ static int of_i2c_gpio_probe(struct device_node *np,
        if (!IS_ENABLED(CONFIG_OFDEVICE))
                return -ENODEV;
 
-       pdata->sda_pin = of_get_named_gpio_flags(np, "sda-gpios", 0, NULL);
-       pdata->scl_pin = of_get_named_gpio_flags(np, "scl-gpios", 0, NULL);
+       pdata->sda_pin = of_get_named_gpio(np, "sda-gpios", 0);
+       pdata->scl_pin = of_get_named_gpio(np, "scl-gpios", 0);
 
        if ((!gpio_is_valid(pdata->sda_pin) || !gpio_is_valid(pdata->scl_pin))
            && (of_gpio_count(np) >= 2)) {
-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to