From patchwork Mon May 10 11:41:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 12247799 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AD5BC433ED for ; Mon, 10 May 2021 11:59:49 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 EB1C36121E for ; Mon, 10 May 2021 11:59:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EB1C36121E 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+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc: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=YkQtnl1rnfZ98jl5y2dlqGQ/nZu7X2lynn7vuzxgv4g=; b=pwQgO0ekHVEVzTB5YvWi4i1qVT y1xlIEEIINBjHxDXS+RoOFql7JnCB/jbOb8a6Mg8qFa2CM3fHNjFCw6wpWBYkSGJZpzseGzGKWJpG 2tGO0rMYbPmIp84aAbfZ+ZrEiANEcgo+/XFUEVDUBij9wL856INn6y2j+R6oJ8j3MekLoU/g+Gn9s sYAx3QXvanOsD/qCcWIsEXBvGNlY+M3HKLx5FCW3J34nZ2p5nt7qhmbO/vMkO/hfKB+u4NiNsrdA1 BulTsSIi6Gar9GmvvXUy5gGueawGB2MkO0btIo0fq470iTFQu82NvDk9uRPz4q6b1Iidtlp8BTcsP zk+rdwzA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg4YI-00EAIv-U0; Mon, 10 May 2021 11:58:23 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg4HP-00E7Oe-6U for linux-arm-kernel@desiato.infradead.org; Mon, 10 May 2021 11:40:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=MrQ7B8yDvLmq6uSUSf8SAyg2556Q+IRIgrs/m0S5/ig=; b=PZ33pFR0uoAHRWVfsQEv8bjeSv qW51F9e0ukLifq97ZpUauvHohrXUxgZ84XTDFIslgkxBNFtbFtrcGcj7zWMM6u9EMA2+6whUkQXBm JiuhcwLcKIN0R+Anc+d4w3jtnD1k0rkdl5qqIhlGZBbPRrDtaXekXs/tBmxkAPLmACq3NiFRmq8NI 8wVrl3Kwhn2BLrc3u7r7M08uWt5Fm3NvY6brJwb0xPBIfd7Q0BTT2+eGRis1deH4wPX0cAYs+Nl0F rTfEeW+WkzBrLfYnM4G0Mmln+13sblGG9yKAARY33FoCy0OLnn7hGuCG1e/gUPNle0fh4iHduwbab 35Wu+74A==; Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg4HM-008d8o-MY for linux-arm-kernel@lists.infradead.org; Mon, 10 May 2021 11:40:53 +0000 IronPort-SDR: rTyZTj5rnwGVRR0gaeu3B+LXlcDuVQfkIDoztv4r/Qb6L6qzaW2OvO0HkxqX+ijEc9cpcVrMD9 szusJyZwcUEA== X-IronPort-AV: E=McAfee;i="6200,9189,9979"; a="199223174" X-IronPort-AV: E=Sophos;i="5.82,287,1613462400"; d="scan'208";a="199223174" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2021 04:40:51 -0700 IronPort-SDR: 5cY6nnDtlOM81E2kNDU+m7wGvSGo55yX/pjK4b1v2kRXoMK2NGG/fqJFSSKmR2QE0PDMYZ3oPr RT5Exx9whljA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,287,1613462400"; d="scan'208";a="433774712" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 10 May 2021 04:40:49 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id E7008D7; Mon, 10 May 2021 14:41:09 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Russell King , Bartosz Golaszewski , Linus Walleij Subject: [PATCH v2 1/1] ARM: Drop ARCH_NR_GPIOS definition Date: Mon, 10 May 2021 14:41:07 +0300 Message-Id: <20210510114107.43006-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_044052_792637_2A58DC48 X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The conditional by the generic header is the same, hence drop unnecessary duplication. Signed-off-by: Andy Shevchenko Reviewed-by: Linus Walleij --- v2: rebased on top of v5.13-rc1 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