diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2022-10-10 06:22:37 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-10-10 10:37:58 +0200 |
commit | 9afd20a5a1b3558950b5e12f3ed057ef93c64a05 (patch) | |
tree | 255a851306698003ada7ccd941130a60c62de62a /include | |
parent | Linux 6.0 (diff) | |
download | linux-9afd20a5a1b3558950b5e12f3ed057ef93c64a05.tar.xz linux-9afd20a5a1b3558950b5e12f3ed057ef93c64a05.zip |
clk: spear: Move prototype to accessible header
Fixes the following W=1 kernel build warning(s):
drivers/clk/spear/spear6xx_clock.c:116:13: warning: no previous prototype for function 'spear6xx_clk_init' [-Wmissing-prototypes]
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clk/spear.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/clk/spear.h b/include/linux/clk/spear.h index a64d034ceddd..eaf95ca656f8 100644 --- a/include/linux/clk/spear.h +++ b/include/linux/clk/spear.h @@ -8,6 +8,20 @@ #ifndef __LINUX_CLK_SPEAR_H #define __LINUX_CLK_SPEAR_H +#ifdef CONFIG_ARCH_SPEAR3XX +void __init spear3xx_clk_init(void __iomem *misc_base, + void __iomem *soc_config_base); +#else +static inline void __init spear3xx_clk_init(void __iomem *misc_base, + void __iomem *soc_config_base) {} +#endif + +#ifdef CONFIG_ARCH_SPEAR6XX +void __init spear6xx_clk_init(void __iomem *misc_base); +#else +static inline void __init spear6xx_clk_init(void __iomem *misc_base) {} +#endif + #ifdef CONFIG_MACH_SPEAR1310 void __init spear1310_clk_init(void __iomem *misc_base, void __iomem *ras_base); #else |