From: chenxing Date: Tue, 22 Jan 2013 06:11:05 +0000 (+0800) Subject: rk30: fix a dvfs error judgement X-Git-Tag: firefly_0821_release~7867 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c705010c4a4a5d4b13586afaf1772b4983c2e848;p=firefly-linux-kernel-4.4.55.git rk30: fix a dvfs error judgement --- diff --git a/arch/arm/mach-rk30/dvfs.c b/arch/arm/mach-rk30/dvfs.c index 10ba749267a8..1ab3a49f4fc1 100755 --- a/arch/arm/mach-rk30/dvfs.c +++ b/arch/arm/mach-rk30/dvfs.c @@ -365,7 +365,8 @@ int dvfs_target_core(struct clk *clk, unsigned long rate_hz) goto out; ret = dvfs_scale_volt_bystep(dvfs_clk->vd, dvfs_clk_cpu->vd, volt_new, volt_dep_new, g_logic_high_arm, g_arm_high_logic, g_logic_high_arm, g_arm_high_logic); - goto out; + if (ret < 0) + goto out; } return ret;