From patchwork Mon Jan 6 14:36:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 3438591 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 76D119F374 for ; Mon, 6 Jan 2014 14:40:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6E4DF2017D for ; Mon, 6 Jan 2014 14:40:47 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EE0C12017B for ; Mon, 6 Jan 2014 14:40:45 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W0BKN-0006K2-Tn; Mon, 06 Jan 2014 14:38:53 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W0BJr-0003l8-Tw; Mon, 06 Jan 2014 14:38:19 +0000 Received: from mail-ee0-f53.google.com ([74.125.83.53]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W0BJb-0003gO-Qw for linux-arm-kernel@lists.infradead.org; Mon, 06 Jan 2014 14:38:05 +0000 Received: by mail-ee0-f53.google.com with SMTP id b57so7924382eek.40 for ; Mon, 06 Jan 2014 06:37:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:content-type; bh=QEUbd20R7ocfRNR3Yg6EHYJOsOFl8a7Y52x1pME9RLA=; b=Iyc9J6NzTfWzxfiL1mnICXd2mUrc6plStr8fuJVBGC8UYsikXd6ajDExGd3s7gBs0a nmVMETPq29b2F4n5b/RN7wgUTLuiMtSfaXP+ijWnMZ9SsR5WiUd63uTVHourW8qrCqwC q0wJJk5pUC7kVZAfa7S7WVA3DQDqkfp7i8gt3r2HtnNN4PmIhc0DZlThwjVW8owU5NY8 i4BsOCS2PmD/FGlaN+Xgu1PQ4mKPxDV51D1HW1q9wSTxl91ERzc5z654GPSDKXoeYTOS CU3UwQM6Og3GiQjsj/xWtvOhxZha/ajzo88qFybEEwlseGPOAxlNV95MHKh9eIGlaMxP AkkA== X-Gm-Message-State: ALoCoQmcq/Eoh9TYhOsLQQDhtmZuLcWzpuIqllEG64r34Klnd1+hr5CUrpssFe+91imRrkuyytF5 X-Received: by 10.14.9.131 with SMTP id 3mr35686354eet.45.1389019061819; Mon, 06 Jan 2014 06:37:41 -0800 (PST) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id j46sm171487429eew.18.2014.01.06.06.37.38 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 06 Jan 2014 06:37:39 -0800 (PST) From: Michal Simek To: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Soren Brinkmann , Steffen Trumtrar Subject: [PATCH 5/7] ARM: zynq: Make zynq_slcr_base static Date: Mon, 6 Jan 2014 15:36:41 +0100 Message-Id: X-Mailer: git-send-email 1.8.2.3 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140106_093804_020627_C574F415 X-CRM114-Status: GOOD ( 16.10 ) X-Spam-Score: -1.9 (-) Cc: Josh Cartwright , monstr@monstr.eu, Russell King , Peter Crosthwaite , linux-kernel@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Steffen Trumtrar The pointer doesn't need to be passed around any more. Make it static. Signed-off-by: Steffen Trumtrar Signed-off-by: Michal Simek --- arch/arm/mach-zynq/common.h | 1 - arch/arm/mach-zynq/slcr.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) -- 1.8.2.3 diff --git a/arch/arm/mach-zynq/common.h b/arch/arm/mach-zynq/common.h index 1548b85..b097844 100644 --- a/arch/arm/mach-zynq/common.h +++ b/arch/arm/mach-zynq/common.h @@ -34,7 +34,6 @@ extern int zynq_cpun_start(u32 address, int cpu); extern struct smp_operations zynq_smp_ops __initdata; #endif -extern void __iomem *zynq_slcr_base; extern void __iomem *zynq_scu_base; /* Hotplug */ diff --git a/arch/arm/mach-zynq/slcr.c b/arch/arm/mach-zynq/slcr.c index 2891dcf..a679dff 100644 --- a/arch/arm/mach-zynq/slcr.c +++ b/arch/arm/mach-zynq/slcr.c @@ -31,7 +31,7 @@ #define SLCR_A9_CPU_CLKSTOP 0x10 #define SLCR_A9_CPU_RST 0x1 -void __iomem *zynq_slcr_base; +static void __iomem *zynq_slcr_base; static struct regmap *zynq_slcr_regmap; /**