From patchwork Tue Dec 17 09:56:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3360301 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D69D3C0D4A for ; Tue, 17 Dec 2013 09:57:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 23FEA20398 for ; Tue, 17 Dec 2013 09:57:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A7C3D2038C for ; Tue, 17 Dec 2013 09:57:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751021Ab3LQJ47 (ORCPT ); Tue, 17 Dec 2013 04:56:59 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:13561 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332Ab3LQJ45 (ORCPT ); Tue, 17 Dec 2013 04:56:57 -0500 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MXY002B63MV6D90@mailout4.w1.samsung.com>; Tue, 17 Dec 2013 09:56:55 +0000 (GMT) X-AuditID: cbfec7f4-b7fc96d000006cd4-63-52b01fe74bb8 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 2A.60.27860.7EF10B25; Tue, 17 Dec 2013 09:56:55 +0000 (GMT) Content-transfer-encoding: 8BIT Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MXY00FCW3MS1D10@eusync4.samsung.com>; Tue, 17 Dec 2013 09:56:55 +0000 (GMT) From: Krzysztof Kozlowski To: Mike Turquette , Kukjin Kim , Stephen Boyd , Stephen Warren , Tomasz Figa , Krzysztof Kozlowski , James Hogan , Padmavathi Venna , Sachin Kamat , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: exynos: File scope reg_save array should depend on PM_SLEEP Date: Tue, 17 Dec 2013 10:56:39 +0100 Message-id: <1387274199-470-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOLMWRmVeSWpSXmKPExsVy+t/xa7rP5TcEGXTckLN4N+8Fs8XrF4YW vQuusllsenyN1eLyrjlsFjPO72OyeDrhIpvF75vf2SxO/ulltPhxppvF4sb0FlaL9TNeszjw eFzu62Xy6Nl5htHjzrU9bB6bl9R79Da/Y/Po27KK0ePzJrkA9igum5TUnMyy1CJ9uwSujN6H sQV/uCqmb1jP1sA4j7OLkZNDQsBE4sHChUwQtpjEhXvr2boYuTiEBJYySqx62QKW4BUQlPgx +R5LFyMHB7OAvMSRS9kgYWYBdYlJ8xYxg9hCAn1MEh1bUkFsNgFjic3Ll4DNERG4xCzxZed9 VpCEsECwxIYekAWcHCwCqhLne/6xQMx3lTi8cAsjyHwJAQWJOZNsJjDyzkKyeRbC5llINi9g ZF7FKJpamlxQnJSea6hXnJhbXJqXrpecn7uJERLYX3YwLj5mdYhRgINRiYd3x/z1QUKsiWXF lbmHGCU4mJVEeFkKgEK8KYmVValF+fFFpTmpxYcYmTg4pRoYY3RMm6z7n2vn/9lRdUGJr3WP yzXjT6d01lnOZrTau65jj/irSVW5vL/bG+7J3Jc8p3qhd5/Q9f5fPW94/KJdMha/rZzvw73p /xm3Bdfq7R+WdBxQTJmxaXL0iwtZPhtX7Z6xa+v709XsG5+YKhZv4t9SMtngMMfMa4Wrl20T nrnw4sZ1O0SWNSmxFGckGmoxFxUnAgDxl/69SgIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Move reg_save[] into CONFIG_PM_SLEEP dependency block as it is used only by suspend and resume functions. This fixes the warning on CONFIG_PM_SLEEP=n: drivers/clk/samsung/clk-exynos-audss.c:29:22: warning: ‘reg_save’ defined but not used [-Wunused-variable] Signed-off-by: Krzysztof Kozlowski Acked-by: Mike Turquette --- drivers/clk/samsung/clk-exynos-audss.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos-audss.c b/drivers/clk/samsung/clk-exynos-audss.c index 39b40aaede2b..68e515d093d8 100644 --- a/drivers/clk/samsung/clk-exynos-audss.c +++ b/drivers/clk/samsung/clk-exynos-audss.c @@ -26,17 +26,17 @@ static struct clk_onecell_data clk_data; #define ASS_CLK_DIV 0x4 #define ASS_CLK_GATE 0x8 +/* list of all parent clock list */ +static const char *mout_audss_p[] = { "fin_pll", "fout_epll" }; +static const char *mout_i2s_p[] = { "mout_audss", "cdclk0", "sclk_audio0" }; + +#ifdef CONFIG_PM_SLEEP static unsigned long reg_save[][2] = { {ASS_CLK_SRC, 0}, {ASS_CLK_DIV, 0}, {ASS_CLK_GATE, 0}, }; -/* list of all parent clock list */ -static const char *mout_audss_p[] = { "fin_pll", "fout_epll" }; -static const char *mout_i2s_p[] = { "mout_audss", "cdclk0", "sclk_audio0" }; - -#ifdef CONFIG_PM_SLEEP static int exynos_audss_clk_suspend(void) { int i;