Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMian Yousaf Kaukab <ykaukab@suse.de>2018-08-22 16:34:46 +0200
committerMian Yousaf Kaukab <ykaukab@suse.de>2018-08-22 16:36:02 +0200
commit2e55fa238c34e67060db944fb31a21291f986b9e (patch)
tree9d705778ef8795dd1255a76dd88acf4aef7e619c
parent6a67aa18e7e7cd90a7c274cf6cdd463b3d2d5e3d (diff)
gpio: thunderx: remove unused .map() hook from irq_domain_ops
(bsc#1105378). suse-commit: 9f7a9d9faec5eec1733609773b5a0f49469b25b2
-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 = {
.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,
@@ -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
};