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: 112492 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp263089qgf; Wed, 13 Sep 2017 19:59:41 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4Qz3DbWiWdzPy5PTIfSid74pW0yxvFoGb4NEjFtk95YmDcQtvq/Z3svyALdlGMR82Ug58A X-Received: by 10.159.242.129 with SMTP id u1mr13183580plr.243.1505357981378; Wed, 13 Sep 2017 19:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505357981; cv=none; d=google.com; s=arc-20160816; b=yJr+BuQ/NWfHxJ8qGUuyoLdgyCO6bUkKmKK9x2ed1sob1+NeE69mZ6enQJ4sWaKQSv cThs9+Ub/QQiki0lMq4A2+C7CiQHAroMrFzktUxZhpMzOacygB63Dwb2uGtEu6CCtqkD X4xkCA2Pt8aiOM47aTFMfY9kp0EgDOISGhj2Cu87CeooWL6Xgf6MItUs6BFF/RbYj9P4 cwYkgl27bQTOd3sURBoLo2JbhGdB5L4Rxyl5EDP2gOWQbkM//isIwnioxMPpSnUkarqo 9GW7DEO08O1EkKKbdzTv19iYFmILzUGh89JdmN/xTYTaoqWiyK+YfHNnjnKgx8UlACdz TQxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=+q0LEPozT/VV1PiFzOMRrjVfxp1WI0AQ2epsUQ0/e60=; b=oQg/CGK2XXmOZQM/0aLTmu0MxSLk4OYneXCuypNktlfEf27EYs0MYXyO1BWd3Vl7VK Ktgj3x2YMrf+RAS4ng6KRKfQRUKjdin7LrLQHFl7uGpa2PbunCkVnh9cSELMOL7hi7mS w6fdKSGMnVWwDjBRhbxgjcOtq3PN1pFqv/esNa8WSKrsK/bPa7nP75k76n24knVhk4Zt 9thnWJTw+lt/y1uzGxuTymLk6uXinNbQEzUTwfKoF3eHqZVEAF39oeiqwghi6RrzNDYh z+g1AHBhh+LMhdBQjwvXy8idjZGgWFVbwXnf6eWgqzlneruRQydfVHo4FW1nMW64AioD w8uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=nPLqntmH; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10si9453458pgr.110.2017.09.13.19.59.40; Wed, 13 Sep 2017 19:59:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=nPLqntmH; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751326AbdINC7k (ORCPT + 5 others); 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 --- drivers/gpio/gpio-thunderx.c | 13 ------------- 1 file changed, 13 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Tested-by: David Daney 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 };