From 15baa1f6d0fde3a2efaf895b1351c947e0bd0b17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Mon, 2 Apr 2012 20:03:30 +0800 Subject: [PATCH] rk30: dvfs: fix dvfs.h compile error --- arch/arm/mach-rk30/include/mach/dvfs.h | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-rk30/include/mach/dvfs.h b/arch/arm/mach-rk30/include/mach/dvfs.h index 67d79d8beaee..18e9ef36e322 100755 --- a/arch/arm/mach-rk30/include/mach/dvfs.h +++ b/arch/arm/mach-rk30/include/mach/dvfs.h @@ -103,21 +103,15 @@ struct cpufreq_frequency_table *dvfs_get_freq_volt_table(struct clk *clk); int dvfs_set_freq_volt_table(struct clk *clk, struct cpufreq_frequency_table *table); int rk30_dvfs_init(void); #else -int rk30_dvfs_init(void){}; -int is_support_dvfs(struct clk_node *dvfs_info){}; -int dvfs_set_rate(struct clk *clk, unsigned long rate){}; -int clk_enable_dvfs(struct clk *clk){}; -int clk_disable_dvfs(struct clk *clk){}; -int cpufreq_dvfs_init(struct clk *ck, struct cpufreq_frequency_table **table, clk_dvfs_target_callback clk_dvfs_target){}; -void dvfs_clk_register_set_rate_callback(struct clk *clk, clk_dvfs_target_callback clk_dvfs_target){}; -struct cpufreq_frequency_table *dvfs_get_freq_volt_table(struct clk *clk){}; -int dvfs_set_freq_volt_table(struct clk *clk, struct cpufreq_frequency_table *table); -int rk30_dvfs_init(void){}; - - - - +static inline int rk30_dvfs_init(void) { return 0; } +static inline int is_support_dvfs(struct clk_node *dvfs_info) { return 0; } +static inline int dvfs_set_rate(struct clk *clk, unsigned long rate) { return 0; } +static inline int clk_enable_dvfs(struct clk *clk) { return 0; } +static inline int clk_disable_dvfs(struct clk *clk) { return 0; } +static inline int cpufreq_dvfs_init(struct clk *ck, struct cpufreq_frequency_table **table, clk_dvfs_target_callback clk_dvfs_target) { return 0; } +static inline void dvfs_clk_register_set_rate_callback(struct clk *clk, clk_dvfs_target_callback clk_dvfs_target) {} +static inline struct cpufreq_frequency_table *dvfs_get_freq_volt_table(struct clk *clk) { return NULL; } +static inline int dvfs_set_freq_volt_table(struct clk *clk, struct cpufreq_frequency_table *table) { return 0; } #endif - #endif -- 2.34.1