mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 15:45:45 +00:00
gpio: davinci: Assign first bank regs for unbanked case
[ Upstream commit7f8e2a85c1
] 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:b5cf3fd827
("gpio: davinci: Redesign driver to accommodate ngpios in one gpio chip") Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4c194e5b0d
commit
073cd31e2f
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue