Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751424AbdINC7l (ORCPT ); Wed, 13 Sep 2017 22:59:41 -0400 Received: from condef-08.nifty.com ([202.248.20.73]:29725 "EHLO condef-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751311AbdINC7j (ORCPT ); Wed, 13 Sep 2017 22:59:39 -0400 X-Greylist: delayed 385 seconds by postgrey-1.27 at vger.kernel.org; Wed, 13 Sep 2017 22:59:39 EDT DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v8E2bqfs029182 X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-gpio@vger.kernel.org, Linus Walleij , David Daney Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] gpio: thunderx: remove unused .map() hook from irq_domain_ops Date: Thu, 14 Sep 2017 11:37:25 +0900 Message-Id: <1505356645-19765-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1224 Lines: 41 This driver implements .alloc() hook, so .map() is not used. Signed-off-by: Masahiro Yamada --- drivers/gpio/gpio-thunderx.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/gpio/gpio-thunderx.c b/drivers/gpio/gpio-thunderx.c index 57efb25..b5adb79 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 }; -- 2.7.4