Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f8e2a85 authored by Keerthy's avatar Keerthy Committed by Linus Walleij
Browse files

gpio: davinci: Assign first bank regs for unbanked case



As per the re-design assign the first bank regs for unbanked
irq case. This was missed out in the original patch.

Signed-off-by: default avatarKeerthy <j-keerthy@ti.com>
Fixes: b5cf3fd8 ("gpio: davinci: Redesign driver to accommodate ngpios in one gpio chip")
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a158531f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -383,7 +383,7 @@ static int gpio_irq_type_unbanked(struct irq_data *data, unsigned trigger)
	u32 mask;

	d = (struct davinci_gpio_controller *)irq_data_get_irq_handler_data(data);
	g = (struct davinci_gpio_regs __iomem *)d->regs;
	g = (struct davinci_gpio_regs __iomem *)d->regs[0];
	mask = __gpio_mask(data->irq - d->base_irq);

	if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING))