rk3188: fix compiled error when disable dvfs
authorchenxing <chenxing@rock-chips.com>
Sat, 26 Jan 2013 07:22:02 +0000 (15:22 +0800)
committerchenxing <chenxing@rock-chips.com>
Sat, 26 Jan 2013 07:22:02 +0000 (15:22 +0800)
arch/arm/mach-rk3188/include/mach/dvfs.h

index 0e88605f06c4b3ae393c5b88a97ee53da8abcb32..9a9b3bdbc8e415de70e28e8ced602dafcf56fd8d 100644 (file)
@@ -1 +1,12 @@
+#ifndef RK_MACH_DVFS_H
+#define RK_MACH_DVFS_H
+
 #include <plat/dvfs.h>
+
+#ifdef CONFIG_DVFS
+int rk3188_dvfs_init(void);
+#else
+static inline int rk3188_dvfs_init(void){ return 0; }
+#endif
+
+#endif