From: Ashok Reddy Soma Date: Wed, 11 Sep 2019 10:40:11 +0000 (-0600) Subject: gpio: zynq: fix issue in set gpio output direction X-Git-Tag: v2020.01-rc1~30^2~36 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0384ac058376aa2fbac9965e0f2a4ddb5729b37a;p=oweals%2Fu-boot.git gpio: zynq: fix issue in set gpio output direction This patch fixes zynq_gpio_direction() to call driver specific zynq_gpio_set_value function rather than top level gpio_set_value. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index 55a5cba068..a760c5bdda 100644 --- a/drivers/gpio/zynq_gpio.c +++ b/drivers/gpio/zynq_gpio.c @@ -292,7 +292,7 @@ static int zynq_gpio_direction_output(struct udevice *dev, unsigned gpio, writel(reg, platdata->base + ZYNQ_GPIO_OUTEN_OFFSET(bank_num)); /* set the state of the pin */ - gpio_set_value(gpio, value); + zynq_gpio_set_value(dev, gpio, value); return 0; }