diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-12-01 04:12:54 -0500 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2014-12-02 10:22:58 -0500 |
commit | b5f56e14c1c962e201a8afa80e156f64fdef778a (patch) | |
tree | 5b36ef5c8ab5ec958175702b31dc0ba86c0080e8 /drivers/clk | |
parent | 8b2f63606a1322bd051e15913a8233295e8a7599 (diff) |
clk: samsung: exynos4415: Fix build with PM_SLEEP disabled
Fix following build errors when PM_SLEEP is disabled (e.g. by disabling
SUSPEND and HIBERNATION):
drivers/clk/samsung/clk-exynos4415.c: In function ‘exynos4415_cmu_init’:
drivers/clk/samsung/clk-exynos4415.c:982:2: error: ‘exynos4415_ctx’ undeclared (first use in this function)
drivers/clk/samsung/clk-exynos4415.c:982:2: note: each undeclared identifier is reported only once for each function it appears in
drivers/clk/samsung/clk-exynos4415.c: In function ‘exynos4415_cmu_dmc_init’:
drivers/clk/samsung/clk-exynos4415.c:1123:2: error: ‘exynos4415_dmc_ctx’ undeclared (first use in this function)
make[3]: *** [drivers/clk/samsung/clk-exynos4415.o] Error 1
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/samsung/clk-exynos4415.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/clk/samsung/clk-exynos4415.c b/drivers/clk/samsung/clk-exynos4415.c index c7208c7a3add..2123fc251e0f 100644 --- a/drivers/clk/samsung/clk-exynos4415.c +++ b/drivers/clk/samsung/clk-exynos4415.c | |||
@@ -118,12 +118,13 @@ enum exynos4415_plls { | |||
118 | nr_plls, | 118 | nr_plls, |
119 | }; | 119 | }; |
120 | 120 | ||
121 | static struct samsung_clk_provider *exynos4415_ctx; | ||
122 | |||
121 | /* | 123 | /* |
122 | * Support for CMU save/restore across system suspends | 124 | * Support for CMU save/restore across system suspends |
123 | */ | 125 | */ |
124 | #ifdef CONFIG_PM_SLEEP | 126 | #ifdef CONFIG_PM_SLEEP |
125 | static struct samsung_clk_reg_dump *exynos4415_clk_regs; | 127 | static struct samsung_clk_reg_dump *exynos4415_clk_regs; |
126 | static struct samsung_clk_provider *exynos4415_ctx; | ||
127 | 128 | ||
128 | static unsigned long exynos4415_cmu_clk_regs[] __initdata = { | 129 | static unsigned long exynos4415_cmu_clk_regs[] __initdata = { |
129 | SRC_LEFTBUS, | 130 | SRC_LEFTBUS, |
@@ -1031,9 +1032,10 @@ enum exynos4415_dmc_plls { | |||
1031 | nr_dmc_plls, | 1032 | nr_dmc_plls, |
1032 | }; | 1033 | }; |
1033 | 1034 | ||
1035 | static struct samsung_clk_provider *exynos4415_dmc_ctx; | ||
1036 | |||
1034 | #ifdef CONFIG_PM_SLEEP | 1037 | #ifdef CONFIG_PM_SLEEP |
1035 | static struct samsung_clk_reg_dump *exynos4415_dmc_clk_regs; | 1038 | static struct samsung_clk_reg_dump *exynos4415_dmc_clk_regs; |
1036 | static struct samsung_clk_provider *exynos4415_dmc_ctx; | ||
1037 | 1039 | ||
1038 | static unsigned long exynos4415_cmu_dmc_clk_regs[] __initdata = { | 1040 | static unsigned long exynos4415_cmu_dmc_clk_regs[] __initdata = { |
1039 | MPLL_LOCK, | 1041 | MPLL_LOCK, |