mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-07-15 18:20:05 +02:00

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>
26 lines
556 B
C
26 lines
556 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* TI DaVinci CPUFreq platform support.
|
|
*
|
|
* Copyright (C) 2009 Texas Instruments, Inc. https://www.ti.com/
|
|
*/
|
|
|
|
#ifndef _MACH_DAVINCI_CPUFREQ_H
|
|
#define _MACH_DAVINCI_CPUFREQ_H
|
|
|
|
#include <linux/cpufreq.h>
|
|
|
|
struct davinci_cpufreq_config {
|
|
struct cpufreq_frequency_table *freq_table;
|
|
int (*set_voltage)(unsigned int index);
|
|
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 */
|