Skip to content

Commit

Permalink
gpio: thunderx: remove unused .map() hook from irq_domain_ops
Browse files Browse the repository at this point in the history
This driver implements .alloc() hook, so .map() is not used.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: David Daney <david.daney@cavium.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Masahiro Yamada authored and Linus Walleij committed Sep 22, 2017
1 parent a5ae5f5 commit 206f82c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions drivers/gpio/gpio-thunderx.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,18 +417,6 @@ static struct irq_chip thunderx_gpio_irq_chip = {
.flags = IRQCHIP_SET_TYPE_MASKED
};

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,
Expand All @@ -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
};
Expand Down

0 comments on commit 206f82c

Please sign in to comment.