From patchwork Thu Nov 4 14:14:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 301962 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA4EEMZR014820 for ; Thu, 4 Nov 2010 14:14:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751471Ab0KDOOW (ORCPT ); Thu, 4 Nov 2010 10:14:22 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:51870 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1750908Ab0KDOOW (ORCPT ); Thu, 4 Nov 2010 10:14:22 -0400 Received: (qmail invoked by alias); 04 Nov 2010 14:14:15 -0000 Received: from p508989B0.dip0.t-ipconnect.de (EHLO axis700.grange) [80.137.137.176] by mail.gmx.net (mp069) with SMTP; 04 Nov 2010 15:14:15 +0100 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX18rufUqQhgr2UyMFkssqVHZYZm79a92fpf5KFxjU8 60JHnmoq6YjBS6 Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1PE0aD-00054Q-Kc for linux-sh@vger.kernel.org; Thu, 04 Nov 2010 15:14:29 +0100 Date: Thu, 4 Nov 2010 15:14:29 +0100 (CET) From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org Subject: [PATCH] sh: make some needlessly global sh7724 clocks static Message-ID: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 04 Nov 2010 14:14:23 +0000 (UTC) diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c index 2d9700c..0fe2e93 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c @@ -48,7 +48,7 @@ static struct clk r_clk = { * Default rate for the root input clock, reset this with clk_set_rate() * from the platform code. */ -struct clk extal_clk = { +static struct clk extal_clk = { .rate = 33333333, }; @@ -111,7 +111,7 @@ static struct clk div3_clk = { .parent = &pll_clk, }; -struct clk *main_clks[] = { +static struct clk *main_clks[] = { &r_clk, &extal_clk, &fll_clk, @@ -156,7 +156,7 @@ struct clk div4_clks[DIV4_NR] = { enum { DIV6_V, DIV6_FA, DIV6_FB, DIV6_I, DIV6_S, DIV6_NR }; -struct clk div6_clks[DIV6_NR] = { +static struct clk div6_clks[DIV6_NR] = { [DIV6_V] = SH_CLK_DIV6(&div3_clk, VCLKCR, 0), [DIV6_FA] = SH_CLK_DIV6(&div3_clk, FCLKACR, 0), [DIV6_FB] = SH_CLK_DIV6(&div3_clk, FCLKBCR, 0),