From patchwork Mon Aug 22 09:48:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 9293357 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1638C607FF for ; Mon, 22 Aug 2016 09:51:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08D0728812 for ; Mon, 22 Aug 2016 09:51:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F18DE28822; Mon, 22 Aug 2016 09:51:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 223582881D for ; Mon, 22 Aug 2016 09:51:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bblrC-00034C-2O; Mon, 22 Aug 2016 09:49:26 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bblqr-0002xv-7B for linux-arm-kernel@lists.infradead.org; Mon, 22 Aug 2016 09:49:06 +0000 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OCB004CJ1X5BQ30@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 22 Aug 2016 18:48:41 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.113]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id BB.5C.27902.97ACAB75; Mon, 22 Aug 2016 18:48:41 +0900 (KST) X-AuditID: cbfee68e-f79cb6d000006cfe-7f-57baca79c9d8 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 46.24.05218.97ACAB75; Mon, 22 Aug 2016 18:48:41 +0900 (KST) Received: from chan.10.32.193.11 ([10.113.62.212]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OCB00BJV1X4ZV40@mmp1.samsung.com>; Mon, 22 Aug 2016 18:48:40 +0900 (KST) From: Chanwoo Choi To: s.nawrocki@samsung.com, tomasz.figa@gmail.com Subject: [PATCH 4/5] clk: samsung: exynos5420: Fix the checkpatch warnings Date: Mon, 22 Aug 2016 18:48:38 +0900 Message-id: <1471859319-30681-5-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1471859319-30681-1-git-send-email-cw00.choi@samsung.com> References: <1471859319-30681-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFLMWRmVeSWpSXmKPExsWyRsSkULfy1K5wg9MnBS0m3rjCYnH9y3NW i9cvDC36H79mttj0+Bqrxceee6wWl3fNYbOYcX4fk8XFU64Wh9+0s1r8ONPNYrFq1x9GBx6P 9zda2T0u9/UyeeycdZfdY9OqTjaPzUvqPfq2rGL0+LxJLoA9issmJTUnsyy1SN8ugSvjzpcN TAVnBCvWf57M0sDYy9/FyMEhIWAisbZftouRE8gUk7hwbz1bFyMXh5DACkaJX9d+sUEkTCTW 9TxkhkgsZZR4cOEiC4TzhVHi640LYFVsAloS+1/cYAOZKiJgKHHzkB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ZLzczcxgmPxmdQOxoO73A8xCnAw KvHwShzbFS7EmlhWXJl7iFGCg1lJhFfqJFCINyWxsiq1KD++qDQntfgQoynQYROZpUST84Fp Iq8k3tDYxMzI0sjc0MLI2FxJnPfx/3VhQgLpiSWp2ampBalFMH1MHJxSDYyn3PPbDywKeOXs 63Niukum6hLLKWzrDrX0beR6bydYnSnr79XUv5TL6VkU8z0Pia/2aSUzC2d7dK+r/eL7UPI8 Y0FHwWvfGdcbjHa92qiscjdX+ovym5/BcdMX1DlpHww39xd45qoS0h5r37f/tIxEeYff3l/r D88xNnN1cbKy9RL+U97TrcRSnJFoqMVcVJwIAE61vWXbAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160822_024905_443159_2B638E61 X-CRM114-Status: GOOD ( 11.29 ) 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: k.kozlowski@samsung.com, linux-samsung-soc@vger.kernel.org, mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, Chanwoo Choi , kgene@kernel.org, chanwoo@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the following warnings by using checkpatch.pl script. - WARNING: void function return statements are not generally useful - ERROR: space prohibited before that ',' - ERROR: Use of __initconst requires a separate use of const Signed-off-by: Chanwoo Choi --- drivers/clk/samsung/clk-exynos5420.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c index c99d05cd37b7..16b7d160fbdf 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c @@ -336,7 +336,6 @@ err_soc: kfree(exynos5x_save); pr_warn("%s: failed to allocate sleep save data, no sleep support!\n", __func__); - return; } #else static void __init exynos5420_clk_sleep_init(void) {} @@ -345,8 +344,8 @@ static void __init exynos5420_clk_sleep_init(void) {} /* list of all parent clocks */ PNAME(mout_mspll_cpu_p) = {"mout_sclk_cpll", "mout_sclk_dpll", "mout_sclk_mpll", "mout_sclk_spll"}; -PNAME(mout_cpu_p) = {"mout_apll" , "mout_mspll_cpu"}; -PNAME(mout_kfc_p) = {"mout_kpll" , "mout_mspll_kfc"}; +PNAME(mout_cpu_p) = {"mout_apll", "mout_mspll_cpu"}; +PNAME(mout_kfc_p) = {"mout_kpll", "mout_mspll_kfc"}; PNAME(mout_apll_p) = {"fin_pll", "fout_apll"}; PNAME(mout_bpll_p) = {"fin_pll", "fout_bpll"}; PNAME(mout_cpll_p) = {"fin_pll", "fout_cpll"}; @@ -503,14 +502,12 @@ static const struct samsung_fixed_rate_clock exynos5x_fixed_rate_clks[] __initco FRATE(0, "sclk_usbh20_scan_clk", NULL, 0, 480000000), }; -static const struct samsung_fixed_factor_clock - exynos5x_fixed_factor_clks[] __initconst = { +static const struct samsung_fixed_factor_clock exynos5x_fixed_factor_clks[] __initconst = { FFACTOR(0, "ff_hsic_12m", "fin_pll", 1, 2, 0), FFACTOR(0, "ff_sw_aclk66", "mout_sw_aclk66", 1, 2, 0), }; -static const struct samsung_fixed_factor_clock - exynos5800_fixed_factor_clks[] __initconst = { +static const struct samsung_fixed_factor_clock exynos5800_fixed_factor_clks[] __initconst = { FFACTOR(0, "ff_dout_epll2", "mout_sclk_epll", 1, 2, 0), FFACTOR(0, "ff_dout_spll2", "mout_sclk_spll", 1, 2, 0), };