Skip to content

Commit 193f1b7

Browse files
maquefelbrgl
authored andcommitted
gpio: ep93xx: drop to_irq binding
As ->to_irq is redefined in gpiochip_add_irqchip, having it defined in driver is useless, so let's drop it. Reviewed-by: Linus Walleij <[email protected]> Acked-by: Alexander Sverdlin <[email protected]> Signed-off-by: Nikita Shubin <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 1827a89 commit 193f1b7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/gpio/gpio-ep93xx.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,6 @@ static int ep93xx_gpio_set_config(struct gpio_chip *gc, unsigned offset,
318318
return 0;
319319
}
320320

321-
static int ep93xx_gpio_f_to_irq(struct gpio_chip *gc, unsigned offset)
322-
{
323-
return EP93XX_GPIO_F_IRQ_BASE + offset;
324-
}
325-
326321
static void ep93xx_init_irq_chip(struct device *dev, struct irq_chip *ic)
327322
{
328323
ic->irq_ack = ep93xx_gpio_irq_ack;
@@ -415,7 +410,6 @@ static int ep93xx_gpio_add_bank(struct ep93xx_gpio_chip *egc,
415410
}
416411
girq->default_type = IRQ_TYPE_NONE;
417412
girq->handler = handle_level_irq;
418-
gc->to_irq = ep93xx_gpio_f_to_irq;
419413
girq->first = EP93XX_GPIO_F_IRQ_BASE;
420414
}
421415

0 commit comments

Comments
 (0)