From patchwork Mon Oct 12 15:47:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 11833213 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5BD6514D5 for ; Mon, 12 Oct 2020 15:48:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2DE8C2076E for ; Mon, 12 Oct 2020 15:48:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jdZjJZ4j" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2DE8C2076E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=onr3j2/vPgNoO8KvLPcmvqf6FuF3hJp9oDQdNRy8AGY=; b=jdZjJZ4jNkyHt2UzSJqG9VgxRt LlN9s3LmV7cE0o2lw0cWU5hk7wgthkXMoYNCFIFcPpItw18zqbfwwUZl/tmCztSULgtbLRW5XtPbQ 5BsxWRHDfa4A3SvOSegCMIAoEKVxjbiC9GkW0O79GqgRzIPAquNIP/V5pVLy4hWmR28CUSB+hhFQ8 QNiE7tvPehx65LMcwQLyuNlh2QJ3Y0IdRiO+GU0/Pyg+44fCBkmok38qkUGrgA/lFob1nMbWnI+64 ChkngBILSKpTwepyYvmB8DDkPyQ3IDb6AVaGmCljTv8lAqt3hAHXsJMO7dn/g3krOJUNt3XKnuLxj Lq11zynw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kS02h-0003x9-Gj; Mon, 12 Oct 2020 15:47:19 +0000 Received: from mga14.intel.com ([192.55.52.115]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kS02e-0003vu-LJ for linux-arm-kernel@lists.infradead.org; Mon, 12 Oct 2020 15:47:17 +0000 IronPort-SDR: uK6cXHGEHWJ6B0AI5LOskoUlvLfqRa/OgJnXRncHuW5GOHMOoX+aYVeJFYv4v7+6nrimVzQEFi bw0tRdGQzCTw== X-IronPort-AV: E=McAfee;i="6000,8403,9772"; a="164973896" X-IronPort-AV: E=Sophos;i="5.77,367,1596524400"; d="scan'208";a="164973896" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2020 08:47:13 -0700 IronPort-SDR: wLa4hEHqtB8brXXwwgVOCVkdENAYnE6p3JQ1y9vhq6BUyqO0u/pXyhitm3/GGpBBq0WUSkStea vlp+YNwIJUzA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,367,1596524400"; d="scan'208";a="389985234" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga001.jf.intel.com with ESMTP; 12 Oct 2020 08:47:11 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id E1679163; Mon, 12 Oct 2020 18:47:10 +0300 (EEST) From: Andy Shevchenko To: Russell King , linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski , linux-gpio Subject: [PATCH v1] ARM: Drop ARCH_NR_GPIOS definition Date: Mon, 12 Oct 2020 18:47:09 +0300 Message-Id: <20201012154709.68521-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201012_114716_826153_400264DC X-CRM114-Status: GOOD ( 15.05 ) X-Spam-Score: -5.0 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [192.55.52.115 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andy Shevchenko Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The conditional by the generic header is the same, hence drop unnecessary duplication. Signed-off-by: Andy Shevchenko --- arch/arm/include/asm/gpio.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h index c50e383358c4..f3bb8a2bf788 100644 --- a/arch/arm/include/asm/gpio.h +++ b/arch/arm/include/asm/gpio.h @@ -2,10 +2,6 @@ #ifndef _ARCH_ARM_GPIO_H #define _ARCH_ARM_GPIO_H -#if CONFIG_ARCH_NR_GPIO > 0 -#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO -#endif - /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */ #include