Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: exynos: File scope reg_save array should depend on PM_SLEEP

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 <k.kozlowski@samsung.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>

authored by

Krzysztof Kozlowski and committed by
Tomasz Figa
3fd68c99 2feed5ae

+5 -5
+5 -5
drivers/clk/samsung/clk-exynos-audss.c
··· 26 26 #define ASS_CLK_DIV 0x4 27 27 #define ASS_CLK_GATE 0x8 28 28 29 + /* list of all parent clock list */ 30 + static const char *mout_audss_p[] = { "fin_pll", "fout_epll" }; 31 + static const char *mout_i2s_p[] = { "mout_audss", "cdclk0", "sclk_audio0" }; 32 + 33 + #ifdef CONFIG_PM_SLEEP 29 34 static unsigned long reg_save[][2] = { 30 35 {ASS_CLK_SRC, 0}, 31 36 {ASS_CLK_DIV, 0}, 32 37 {ASS_CLK_GATE, 0}, 33 38 }; 34 39 35 - /* list of all parent clock list */ 36 - static const char *mout_audss_p[] = { "fin_pll", "fout_epll" }; 37 - static const char *mout_i2s_p[] = { "mout_audss", "cdclk0", "sclk_audio0" }; 38 - 39 - #ifdef CONFIG_PM_SLEEP 40 40 static int exynos_audss_clk_suspend(void) 41 41 { 42 42 int i;