aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-thunderx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-thunderx.c')
-rw-r--r--drivers/gpio/gpio-thunderx.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpio/gpio-thunderx.c b/drivers/gpio/gpio-thunderx.c
index 57efb251f9c4..b5adb79a631a 100644
--- a/drivers/gpio/gpio-thunderx.c
+++ b/drivers/gpio/gpio-thunderx.c
@@ -417,18 +417,6 @@ static struct irq_chip thunderx_gpio_irq_chip = {
417 .flags = IRQCHIP_SET_TYPE_MASKED 417 .flags = IRQCHIP_SET_TYPE_MASKED
418}; 418};
419 419
420static int thunderx_gpio_irq_map(struct irq_domain *d, unsigned int irq,
421 irq_hw_number_t hwirq)
422{
423 struct thunderx_gpio *txgpio = d->host_data;
424
425 if (hwirq >= txgpio->chip.ngpio)
426 return -EINVAL;
427 if (!thunderx_gpio_is_gpio_nowarn(txgpio, hwirq))
428 return -EPERM;
429 return 0;
430}
431
432static int thunderx_gpio_irq_translate(struct irq_domain *d, 420static int thunderx_gpio_irq_translate(struct irq_domain *d,
433 struct irq_fwspec *fwspec, 421 struct irq_fwspec *fwspec,
434 irq_hw_number_t *hwirq, 422 irq_hw_number_t *hwirq,
@@ -455,7 +443,6 @@ static int thunderx_gpio_irq_alloc(struct irq_domain *d, unsigned int virq,
455} 443}
456 444
457static const struct irq_domain_ops thunderx_gpio_irqd_ops = { 445static const struct irq_domain_ops thunderx_gpio_irqd_ops = {
458 .map = thunderx_gpio_irq_map,
459 .alloc = thunderx_gpio_irq_alloc, 446 .alloc = thunderx_gpio_irq_alloc,
460 .translate = thunderx_gpio_irq_translate 447 .translate = thunderx_gpio_irq_translate
461}; 448};