Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Keerthy <j-keerthy@ti.com>
Fixes: b5cf3fd827d2e1 ("gpio: davinci: Redesign driver to accommodate ngpios in one gpio chip")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Keerthy and committed by
Linus Walleij
7f8e2a85 a158531f

+1 -1
+1 -1
drivers/gpio/gpio-davinci.c
··· 383 383 u32 mask; 384 384 385 385 d = (struct davinci_gpio_controller *)irq_data_get_irq_handler_data(data); 386 - g = (struct davinci_gpio_regs __iomem *)d->regs; 386 + g = (struct davinci_gpio_regs __iomem *)d->regs[0]; 387 387 mask = __gpio_mask(data->irq - d->base_irq); 388 388 389 389 if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING))