Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2529055imj; Mon, 11 Feb 2019 04:30:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IYPfGUL575Ddg/X5n8+cj+yPofCqs9/YJ/3zmRor1nR9UCP1qK0fqQguNbjp+/F4V/bWa0G X-Received: by 2002:a65:6549:: with SMTP id a9mr13074036pgw.21.1549888204060; Mon, 11 Feb 2019 04:30:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549888204; cv=none; d=google.com; s=arc-20160816; b=WhpzDDq61N3ydjzZ5fXQbtl/Reog4AXQdn587DHDlV2vCNBSNys0Z9ijj+4W1qcP1v 1bxL65DnlXzyCnPDuBcm2uLlSQwIBqRhhtNthSpM8trLD+eNqOH38/1pTBaLg+9v93Ha 1jw+xlAfVf3mCw4EcpK79RTW6tnKQcJqy4h0WpwpKlsIFwFLA3Ue2dCTvBZVumGNhpv+ yzyky91GFCla4p/iiQKJOFguYopnSZUhd5j/TqRHQP6VxlJOmUI1qFLBkOU9hqnOVkqQ 7bOwuhqeBnzGdbXPi06is+L1ORCCVkUs1NmYiNWBDvgKHOVeiCP9gEBfVBzuqksTQBsi OMSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=d84vosy0hzSE9kDbqRdSCRCT4mvEWw1x9RCjfQ9bpew=; b=ntH37pyKgyagSwDkHPkvpRcibAOZL4hY1VciAZkpKzqCAE9y5n0OPP9Gem2NLczwju zJCAVYDDeIRMRskBGoBE/ymRe00wdXqWh8G7A+XksBgzkMjRXJpyYbtqfDXc7e/nTWyO GhTfwfD1l+J6eOvyTAAdIE6fKzmi+9VgLLTxRQ9M4KS/dkMDs674emeYCLfWyk3T2lfo 9XTyAcWPOqghmzxYVd7AsVj9RL0jFB9i/Ua/rITc5BA9a8PIngEMvlNoSlKdU9y5xx+r i2dqERQQA7/7GGTKgUkaDNyZpnp0ZxTGXEU+KMmv2vhzjzPgEsGtR37BqRZTY7kp4Xh+ SUOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="SXI6KFH/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 44si10291313plb.57.2019.02.11.04.29.47; Mon, 11 Feb 2019 04:30:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="SXI6KFH/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727521AbfBKM0X (ORCPT + 99 others); Mon, 11 Feb 2019 07:26:23 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:32926 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727197AbfBKM0V (ORCPT ); Mon, 11 Feb 2019 07:26:21 -0500 Received: by mail-wr1-f67.google.com with SMTP id i12so130861wrw.0 for ; Mon, 11 Feb 2019 04:26:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=d84vosy0hzSE9kDbqRdSCRCT4mvEWw1x9RCjfQ9bpew=; b=SXI6KFH/twIrzqjmE7k/SrAQKeGX46c+TAbRieThkTE5FgLtRAcdArt6yoOKsL+XbK L+6DOt5wfwZiOnDZd7RCZygXXNv7B8eC1HqVuM4HU3Om6+yaj3Xf4AGBns6eDakzmUpC 7VfySyu0nkZvDMJh8nu1KYtEG8/t55pp3kwvzWX4WbSGAJ0I6yCrWvZLQdGfWOA7o/WL ivSeuijqvh238EWa9Jnx6GnEc3sJgCXImwxZv13ml/trtY3aP6HAxbSStSv/VjfVZGFo jVvK/hkrMcvoQn8gfbNIiFuHomOTofoHjzwOIEqd0FkV/2PxupDQg5JA/10EnXirAcvd bXGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=d84vosy0hzSE9kDbqRdSCRCT4mvEWw1x9RCjfQ9bpew=; b=Bzej46dvoZlPUhZNQRSgg37AH/blP0pLUy1/TK9MjM4+zvV38q57japVlSb//rVqT2 9+/xkuneLsRjUICURauV2oaW79yLH+2YxBy9zdftj+VcDlWbG8RTMqW8YdC1CPgOFuTa BOv8c7OWtesRl6Eud9a/hrV1MoJkeaUnTfMnun6LLdh03NDfwQIwWse9qZsJkKw3MAGO wxE6VSM6Yo4uTJysRrp1TrGEqkYchHOF7R8n0pGL5cJRObfB7L9FFzHMdW9gGVilI1f7 MGSFUlZLh0JcFDJAHyLQdum6eGnJ6K1KDkjU5dqg1UjlSqyf5zrLqHE50yZCbSUVYcWL 2Hug== X-Gm-Message-State: AHQUAuawqb//cTl+9TbNhy1t73bv5u1dqHCjYK+kw4+mNGnQ9njUUj3g mbvY2tiiOyYXur+kWU+GTGiJYw== X-Received: by 2002:adf:f848:: with SMTP id d8mr29154975wrq.178.1549887979554; Mon, 11 Feb 2019 04:26:19 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id l20sm19494321wrb.93.2019.02.11.04.26.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 04:26:18 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier , David Lechner Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [RESEND PATCH v2 05/33] ARM: davinci: pull davinci_intc_base into the respective intc drivers Date: Mon, 11 Feb 2019 13:25:38 +0100 Message-Id: <20190211122606.8662-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211122606.8662-1-brgl@bgdev.pl> References: <20190211122606.8662-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski davinci_intc_base is defined globally in common.c. Define separate local variables for the aintc and cp-intc drivers and remove the global one. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/common.c | 2 -- arch/arm/mach-davinci/cp_intc.c | 2 ++ arch/arm/mach-davinci/include/mach/common.h | 1 - arch/arm/mach-davinci/irq.c | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-davinci/common.c b/arch/arm/mach-davinci/common.c index a87e158a709b..2850ae02aaa4 100644 --- a/arch/arm/mach-davinci/common.c +++ b/arch/arm/mach-davinci/common.c @@ -23,8 +23,6 @@ struct davinci_soc_info davinci_soc_info; EXPORT_SYMBOL(davinci_soc_info); -void __iomem *davinci_intc_base; - void davinci_get_mac_addr(struct nvmem_device *nvmem, void *context) { char *mac_addr = davinci_soc_info.emac_pdata->mac_addr; diff --git a/arch/arm/mach-davinci/cp_intc.c b/arch/arm/mach-davinci/cp_intc.c index 19874f5ef542..4e293cde20fb 100644 --- a/arch/arm/mach-davinci/cp_intc.c +++ b/arch/arm/mach-davinci/cp_intc.c @@ -26,6 +26,8 @@ #define DAVINCI_CP_INTC_PRI_INDX_MASK GENMASK(9, 0) #define DAVINCI_CP_INTC_GPIR_NONE BIT(31) +static void __iomem *davinci_intc_base; + static inline unsigned int cp_intc_read(unsigned offset) { return __raw_readl(davinci_intc_base + offset); diff --git a/arch/arm/mach-davinci/include/mach/common.h b/arch/arm/mach-davinci/include/mach/common.h index 34e48de92dcc..3d45b73b9a64 100644 --- a/arch/arm/mach-davinci/include/mach/common.h +++ b/arch/arm/mach-davinci/include/mach/common.h @@ -20,7 +20,6 @@ void davinci_timer_init(struct clk *clk); extern void davinci_irq_init(void); -extern void __iomem *davinci_intc_base; struct davinci_timer_instance { u32 base; diff --git a/arch/arm/mach-davinci/irq.c b/arch/arm/mach-davinci/irq.c index 2494d9b36966..19f17ef04381 100644 --- a/arch/arm/mach-davinci/irq.c +++ b/arch/arm/mach-davinci/irq.c @@ -43,6 +43,7 @@ #define IRQ_INTPRI0_REG_OFFSET 0x0030 #define IRQ_INTPRI7_REG_OFFSET 0x004C +static void __iomem *davinci_intc_base; static struct irq_domain *davinci_irq_domain; static inline void davinci_irq_writel(unsigned long value, int offset) -- 2.20.1