From patchwork Fri Aug 14 01:11:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Barry Song <21cnbao@gmail.com> X-Patchwork-Id: 7011701 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AA2BFC05AC for ; Fri, 14 Aug 2015 01:07:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D476E207C2 for ; Fri, 14 Aug 2015 01:07:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 06188207BF for ; Fri, 14 Aug 2015 01:07:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZQ3QI-00066W-KF; Fri, 14 Aug 2015 01:04:42 +0000 Received: from mail-pd0-x22c.google.com ([2607:f8b0:400e:c02::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZQ3QF-0005zj-4E for linux-arm-kernel@lists.infradead.org; Fri, 14 Aug 2015 01:04:39 +0000 Received: by pdco4 with SMTP id o4so25513176pdc.3 for ; Thu, 13 Aug 2015 18:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=q9yBcZatuyPmtCoA9Inb3XZk/MFz8xTmVk39hFWK/bw=; b=Hqr78LEZIg/Rp9Z48RvrKO+ZZU4YY6LuuB8X+4LyDJkcINXvlyabeYOrpr1KD0VDf5 zrFoAJIZPKVcxLC6adZnQ1DmtLaNa43YQY+6yY9MpQmkBpuHi8uGq3qjyIReby28GRrY qEXpTujJRFXvN/9zPVF3K8rWGE2PM3pSbtQDTb8bCN3CFMfS0qdKetVQgOIK+DePCuyo gXZtVNC/prfSn5j92G5Bh1hvdcdUHLgsctGexRuKf+PjZ7xi3e778QWOeS6num0Q30e9 vqdsLaiQc1RkvE0FlMISMwL7/qaVqYYptFIrJVQFzhE82xTkVQD4vznGZA6qZWhScf0Q fJFg== X-Received: by 10.70.43.198 with SMTP id y6mr37786158pdl.4.1439514257098; Thu, 13 Aug 2015 18:04:17 -0700 (PDT) Received: from ip-172-31-29-47.ap-northeast-1.compute.internal (ec2-54-65-106-64.ap-northeast-1.compute.amazonaws.com. [54.65.106.64]) by smtp.gmail.com with ESMTPSA id qn6sm3985058pbc.22.2015.08.13.18.04.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 13 Aug 2015 18:04:15 -0700 (PDT) From: Barry Song <21cnbao@gmail.com> To: sboyd@codeaurora.org, mturquette@baylibre.com Subject: [PATCH 1/2] clk: atlas7: move variable-definition together Date: Fri, 14 Aug 2015 01:11:02 +0000 Message-Id: <1439514663-23979-1-git-send-email-21cnbao@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150813_180439_207832_3BF38A5A X-CRM114-Status: UNSURE ( 9.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guo Zeng , workgroup.linux@csr.com, linux-arm-kernel@lists.infradead.org, Barry Song 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.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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: Guo Zeng re-order the codes more reasonable by moving variable-definition together. Signed-off-by: Guo Zeng Signed-off-by: Barry Song --- drivers/clk/sirf/clk-atlas7.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/clk/sirf/clk-atlas7.c b/drivers/clk/sirf/clk-atlas7.c index a98e21f..d34d1b3 100644 --- a/drivers/clk/sirf/clk-atlas7.c +++ b/drivers/clk/sirf/clk-atlas7.c @@ -206,18 +206,6 @@ #define SIRFSOC_CLKC_LEAF_CLK_EN8_SET 0x0548 -static void __iomem *sirfsoc_clk_vbase; -static struct clk_onecell_data clk_data; - -static const struct clk_div_table pll_div_table[] = { - { .val = 0, .div = 1 }, - { .val = 1, .div = 2 }, - { .val = 2, .div = 4 }, - { .val = 3, .div = 8 }, - { .val = 4, .div = 16 }, - { .val = 5, .div = 32 }, -}; - struct clk_pll { struct clk_hw hw; u16 regofs; /* register offset */ @@ -284,6 +272,18 @@ struct atlas7_reset_desc { spinlock_t *lock; }; +static void __iomem *sirfsoc_clk_vbase; +static struct clk_onecell_data clk_data; + +static const struct clk_div_table pll_div_table[] = { + { .val = 0, .div = 1 }, + { .val = 1, .div = 2 }, + { .val = 2, .div = 4 }, + { .val = 3, .div = 8 }, + { .val = 4, .div = 16 }, + { .val = 5, .div = 32 }, +}; + static DEFINE_SPINLOCK(cpupll_ctrl1_lock); static DEFINE_SPINLOCK(mempll_ctrl1_lock); static DEFINE_SPINLOCK(sys0pll_ctrl1_lock);