mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user