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

index 5d6254dd145743b497c75450a09a60cc6daf84a1..4672820e623a51ab11338449f8a6365bb6dd8cf7 100644 (file)
@@ -1 +1,12 @@
+#ifndef RK_MACH_DVFS_H\r
+#define RK_MACH_DVFS_H\r
+\r
 #include <plat/dvfs.h>\r
+\r
+#ifdef CONFIG_DVFS\r
+int rk292x_dvfs_init(void);\r
+#else\r
+static inline int rk292x_dvfs_init(void){ return 0; }\r
+#endif\r
+\r
+#endif\r