diff options
author | Axel Lin <axel.lin@ingics.com> | 2012-11-05 21:34:20 -0500 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-11-15 14:04:35 -0500 |
commit | 90d4971d3d71a50f2265d97589ef361d1402647a (patch) | |
tree | 6dd67a6f65d49ce7d77032526de8432f4ffefb4d /drivers/clk/spear/spear3xx_clock.c | |
parent | ddc07ef9499509200033be7e387feb6c83744a73 (diff) |
clk: spear: Add stub functions for spear3[0|1|2]0_clk_init()
This fixes compile error if one of SPEAr3xx implementations is not selected.
CC drivers/clk/spear/spear3xx_clock.o
drivers/clk/spear/spear3xx_clock.c: In function 'spear3xx_clk_init':
drivers/clk/spear/spear3xx_clock.c:599:3: error: implicit declaration of function 'spear300_clk_init' [-Werror=implicit-function-declaration]
drivers/clk/spear/spear3xx_clock.c:601:3: error: implicit declaration of function 'spear310_clk_init' [-Werror=implicit-function-declaration]
drivers/clk/spear/spear3xx_clock.c:603:3: error: implicit declaration of function 'spear320_clk_init' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [drivers/clk/spear/spear3xx_clock.o] Error 1
make[2]: *** [drivers/clk/spear] Error 2
make[1]: *** [drivers/clk] Error 2
make: *** [drivers] Error 2
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/spear/spear3xx_clock.c')
-rw-r--r-- | drivers/clk/spear/spear3xx_clock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clk/spear/spear3xx_clock.c b/drivers/clk/spear/spear3xx_clock.c index c3157454bb3f..59049cf81a74 100644 --- a/drivers/clk/spear/spear3xx_clock.c +++ b/drivers/clk/spear/spear3xx_clock.c | |||
@@ -157,6 +157,8 @@ static void __init spear300_clk_init(void) | |||
157 | 1); | 157 | 1); |
158 | clk_register_clkdev(clk, NULL, "a0000000.kbd"); | 158 | clk_register_clkdev(clk, NULL, "a0000000.kbd"); |
159 | } | 159 | } |
160 | #else | ||
161 | static inline void spear300_clk_init(void) { } | ||
160 | #endif | 162 | #endif |
161 | 163 | ||
162 | /* array of all spear 310 clock lookups */ | 164 | /* array of all spear 310 clock lookups */ |
@@ -197,6 +199,8 @@ static void __init spear310_clk_init(void) | |||
197 | 1); | 199 | 1); |
198 | clk_register_clkdev(clk, NULL, "b2200000.serial"); | 200 | clk_register_clkdev(clk, NULL, "b2200000.serial"); |
199 | } | 201 | } |
202 | #else | ||
203 | static inline void spear310_clk_init(void) { } | ||
200 | #endif | 204 | #endif |
201 | 205 | ||
202 | /* array of all spear 320 clock lookups */ | 206 | /* array of all spear 320 clock lookups */ |
@@ -336,6 +340,8 @@ static void __init spear320_clk_init(void) | |||
336 | &_lock); | 340 | &_lock); |
337 | clk_register_clkdev(clk, NULL, "60100000.serial"); | 341 | clk_register_clkdev(clk, NULL, "60100000.serial"); |
338 | } | 342 | } |
343 | #else | ||
344 | static inline void spear320_clk_init(void) { } | ||
339 | #endif | 345 | #endif |
340 | 346 | ||
341 | void __init spear3xx_clk_init(void) | 347 | void __init spear3xx_clk_init(void) |