Message ID | 20230116094957.5756-2-marex@denx.de |
---|---|
State | Accepted |
Commit | 8e88a0feebb241cab0253698b2f7358b6ebec802 |
Headers | show |
Series | [v7,1/2] gpio: mxc: Protect GPIO irqchip RMW with bgpio spinlock | expand |
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 2d9d498727f10..6f673b2f2a1bf 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c @@ -223,7 +223,7 @@ static int gpio_set_irq_type(struct irq_data *d, u32 type) raw_spin_unlock_irqrestore(&port->gc.bgpio_lock, flags); - return 0; + return port->gc.direction_input(&port->gc, gpio_idx); } static void mxc_flip_edge(struct mxc_gpio_port *port, u32 gpio)