diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-05-16 17:30:57 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-05-26 13:31:31 +0200 |
commit | 30955b4afc2bbea9046c60df994297fac5edc02c (patch) | |
tree | 67280458121fba80ec4508d1338c240b8c16f280 /arch | |
parent | 44c026a73be8038f03dbdeef028b642880cf1511 (diff) | |
download | linux-stable-30955b4afc2bbea9046c60df994297fac5edc02c.tar.gz linux-stable-30955b4afc2bbea9046c60df994297fac5edc02c.tar.bz2 linux-stable-30955b4afc2bbea9046c60df994297fac5edc02c.zip |
ARM: davinci: fix davinci_cpufreq_init() declaration
The davinci_cpufreq_init() declaration is only seen by its caller
but not the definition:
drivers/cpufreq/davinci-cpufreq.c:153:12: error: no previous prototype for 'davinci_cpufreq_init'
Move it into the platform_data header that is already used an
interface between the two places.
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20230516153109.514251-2-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-davinci/common.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-davinci/common.h | 6 |
2 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-davinci/common.c b/arch/arm/mach-davinci/common.c index c1ce6b2a8d48..7bc7018688de 100644 --- a/arch/arm/mach-davinci/common.c +++ b/arch/arm/mach-davinci/common.c @@ -11,6 +11,7 @@ #include <linux/etherdevice.h> #include <linux/davinci_emac.h> #include <linux/dma-mapping.h> +#include <linux/platform_data/davinci-cpufreq.h> #include <asm/tlb.h> #include <asm/mach/map.h> diff --git a/arch/arm/mach-davinci/common.h b/arch/arm/mach-davinci/common.h index b4fd0e9acf6c..8aa6d4fc3f6f 100644 --- a/arch/arm/mach-davinci/common.h +++ b/arch/arm/mach-davinci/common.h @@ -55,12 +55,6 @@ extern void davinci_common_init(const struct davinci_soc_info *soc_info); extern void davinci_init_ide(void); void davinci_init_late(void); -#ifdef CONFIG_CPU_FREQ -int davinci_cpufreq_init(void); -#else -static inline int davinci_cpufreq_init(void) { return 0; } -#endif - #ifdef CONFIG_SUSPEND int davinci_pm_init(void); #else |