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

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>

authored by

Axel Lin and committed by
Mike Turquette
90d4971d ddc07ef9

+6
+6
drivers/clk/spear/spear3xx_clock.c
··· 157 157 1); 158 158 clk_register_clkdev(clk, NULL, "a0000000.kbd"); 159 159 } 160 + #else 161 + static inline void spear300_clk_init(void) { } 160 162 #endif 161 163 162 164 /* array of all spear 310 clock lookups */ ··· 199 197 1); 200 198 clk_register_clkdev(clk, NULL, "b2200000.serial"); 201 199 } 200 + #else 201 + static inline void spear310_clk_init(void) { } 202 202 #endif 203 203 204 204 /* array of all spear 320 clock lookups */ ··· 340 336 &_lock); 341 337 clk_register_clkdev(clk, NULL, "60100000.serial"); 342 338 } 339 + #else 340 + static inline void spear320_clk_init(void) { } 343 341 #endif 344 342 345 343 void __init spear3xx_clk_init(void)