From patchwork Thu Sep 14 02:37:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 813685 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="nPLqntmH"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xt3Cx4XzDz9t3V for ; Thu, 14 Sep 2017 12:59:41 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751326AbdINC7k (ORCPT ); Wed, 13 Sep 2017 22:59:40 -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 Received: from conuserg-07.nifty.com ([10.126.8.70])by condef-08.nifty.com with ESMTP id v8E2cvbv025182; Thu, 14 Sep 2017 11:38:57 +0900 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id v8E2bqfs029182; Thu, 14 Sep 2017 11:37:52 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v8E2bqfs029182 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1505356672; bh=9UXb8tfZdMj74f48yBJNPdHEhEwLkTb4uVZDz5tixHc=; h=From:To:Cc:Subject:Date:From; b=nPLqntmH0txhnkG2t74Ruqih8yOuI8Jlc6QZbyH3wua0dksinR1CcXSmcd6ivAQ2+ jV6ogVoIkIwzZDWmmdQny0K+GV4QE0frKa+IuBHfSEudfkMYT//H8c9vTwerYkjm1f V2GcM2xzxeOdlvMT7oqkh0z55JGeL1/pCh3ftTI7rh7EV+02PUPhD6FMcEzPjWaTAR dNRqaIntqjS25jkWHrahbJkxbayhdrmCznRdh569i3dmYUisASBVcqJmJ1A9yAbbUe FHzzajh4cHzZ0UvVQPAw3p5eKZGyEPmLRWVj/4T0/LftFhNmnMJLOcQESXjG4Bh+8F xm0S5U6Wq6H+A== 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-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This driver implements .alloc() hook, so .map() is not used. Signed-off-by: Masahiro Yamada Tested-by: David Daney --- 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 };