rk29: include/linux/regulator/consumer.h: fix warning: no return statement in functio...
author黄涛 <huangtao@rock-chips.com>
Mon, 25 Jul 2011 08:55:47 +0000 (16:55 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 25 Jul 2011 09:03:22 +0000 (17:03 +0800)
include/linux/regulator/consumer.h

index 73286b2b29eb20e486d0a1dd184810013acf6a55..2e94871b2fdd9f7ed8e9fe6bc930fa911792b813 100755 (executable)
@@ -149,9 +149,9 @@ int regulator_list_voltage(struct regulator *regulator, unsigned selector);
 int regulator_is_supported_voltage(struct regulator *regulator,
                                   int min_uV, int max_uV);
 int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV);
-
+#ifdef CONFIG_ARCH_RK29
 int regulator_set_suspend_voltage(struct regulator *regulator, int uV);
-
+#endif
 int regulator_get_voltage(struct regulator *regulator);
 int regulator_set_current_limit(struct regulator *regulator,
                               int min_uA, int max_uA);
@@ -234,12 +234,13 @@ static inline int regulator_set_voltage(struct regulator *regulator,
 {
        return 0;
 }
-static int regulator_set_suspend_voltage(struct regulator *regulator, int uV)
-{
-
-
 
+#ifdef CONFIG_ARCH_RK29
+static inline int regulator_set_suspend_voltage(struct regulator *regulator, int uV)
+{
+       return 0;
 }
+#endif
 
 static inline int regulator_get_voltage(struct regulator *regulator)
 {