Commit 206f82cc authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Linus Walleij

gpio: thunderx: remove unused .map() hook from irq_domain_ops

This driver implements .alloc() hook, so .map() is not used.
Signed-off-by: Masahiro Yamada's avatarMasahiro Yamada <>
Tested-by: default avatarDavid Daney <>
Signed-off-by: default avatarLinus Walleij <>
parent a5ae5f5c
......@@ -417,18 +417,6 @@ static struct irq_chip thunderx_gpio_irq_chip = {
static int thunderx_gpio_irq_map(struct irq_domain *d, unsigned int irq,
irq_hw_number_t hwirq)
struct thunderx_gpio *txgpio = d->host_data;
if (hwirq >= txgpio->chip.ngpio)
return -EINVAL;
if (!thunderx_gpio_is_gpio_nowarn(txgpio, hwirq))
return -EPERM;
return 0;
static int thunderx_gpio_irq_translate(struct irq_domain *d,
struct irq_fwspec *fwspec,
irq_hw_number_t *hwirq,
......@@ -455,7 +443,6 @@ static int thunderx_gpio_irq_alloc(struct irq_domain *d, unsigned int virq,
static const struct irq_domain_ops thunderx_gpio_irqd_ops = {
.map = thunderx_gpio_irq_map,
.alloc = thunderx_gpio_irq_alloc,
.translate = thunderx_gpio_irq_translate
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment