From c216a73bf8a4e239b6e709b95dfcbbc98cb73272 Mon Sep 17 00:00:00 2001 From: chenxing Date: Sat, 26 Jan 2013 15:38:43 +0800 Subject: [PATCH] rk292x: fix compiled error when disable dvfs --- arch/arm/mach-rk2928/include/mach/dvfs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-rk2928/include/mach/dvfs.h b/arch/arm/mach-rk2928/include/mach/dvfs.h index 5d6254dd1457..4672820e623a 100644 --- a/arch/arm/mach-rk2928/include/mach/dvfs.h +++ b/arch/arm/mach-rk2928/include/mach/dvfs.h @@ -1 +1,12 @@ +#ifndef RK_MACH_DVFS_H +#define RK_MACH_DVFS_H + #include + +#ifdef CONFIG_DVFS +int rk292x_dvfs_init(void); +#else +static inline int rk292x_dvfs_init(void){ return 0; } +#endif + +#endif -- 2.34.1