rk30: fix a dvfs error judgement
authorchenxing <chenxing@rock-chips.com>
Tue, 22 Jan 2013 06:11:05 +0000 (14:11 +0800)
committerchenxing <chenxing@rock-chips.com>
Tue, 22 Jan 2013 06:11:10 +0000 (14:11 +0800)
arch/arm/mach-rk30/dvfs.c

index 10ba749267a8f78e6f495b657e25ee8e745039e8..1ab3a49f4fc1b418fd267d79d9e7520bd8f8f389 100755 (executable)
@@ -365,7 +365,8 @@ int dvfs_target_core(struct clk *clk, unsigned long rate_hz)
                        goto out;\r
                ret = dvfs_scale_volt_bystep(dvfs_clk->vd, dvfs_clk_cpu->vd, volt_new, volt_dep_new,\r
                                g_logic_high_arm, g_arm_high_logic, g_logic_high_arm, g_arm_high_logic);\r
-               goto out;\r
+               if (ret < 0)\r
+                       goto out;\r
        }\r
 \r
        return ret;\r