mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 18:08:20 +00: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:
parent
44c026a73b
commit
30955b4afc
@ -11,6 +11,7 @@
|
|||||||
#include <linux/etherdevice.h>
|
#include <linux/etherdevice.h>
|
||||||
#include <linux/davinci_emac.h>
|
#include <linux/davinci_emac.h>
|
||||||
#include <linux/dma-mapping.h>
|
#include <linux/dma-mapping.h>
|
||||||
|
#include <linux/platform_data/davinci-cpufreq.h>
|
||||||
|
|
||||||
#include <asm/tlb.h>
|
#include <asm/tlb.h>
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
|
@ -55,12 +55,6 @@ extern void davinci_common_init(const struct davinci_soc_info *soc_info);
|
|||||||
extern void davinci_init_ide(void);
|
extern void davinci_init_ide(void);
|
||||||
void davinci_init_late(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
|
#ifdef CONFIG_SUSPEND
|
||||||
int davinci_pm_init(void);
|
int davinci_pm_init(void);
|
||||||
#else
|
#else
|
||||||
|
@ -16,4 +16,10 @@ struct davinci_cpufreq_config {
|
|||||||
int (*init)(void);
|
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 */
|
#endif /* _MACH_DAVINCI_CPUFREQ_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user