diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-05-16 18:30:57 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-05-26 14:31:31 +0300 |
commit | 30955b4afc2bbea9046c60df994297fac5edc02c (patch) | |
tree | 67280458121fba80ec4508d1338c240b8c16f280 /include/linux/platform_data | |
parent | 44c026a73be8038f03dbdeef028b642880cf1511 (diff) | |
download | linux-30955b4afc2bbea9046c60df994297fac5edc02c.tar.xz |
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 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/davinci-cpufreq.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/platform_data/davinci-cpufreq.h b/include/linux/platform_data/davinci-cpufreq.h index bc208c64e3d7..1ef91c36f609 100644 --- a/include/linux/platform_data/davinci-cpufreq.h +++ b/include/linux/platform_data/davinci-cpufreq.h @@ -16,4 +16,10 @@ struct davinci_cpufreq_config { int (*init)(void); }; +#ifdef CONFIG_CPU_FREQ +int davinci_cpufreq_init(void); +#else +static inline int davinci_cpufreq_init(void) { return 0; } +#endif + #endif /* _MACH_DAVINCI_CPUFREQ_H */ |