projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d9b8ec
)
rk30: fix a dvfs error judgement
author
chenxing
<chenxing@rock-chips.com>
Tue, 22 Jan 2013 06:11:05 +0000
(14:11 +0800)
committer
chenxing
<chenxing@rock-chips.com>
Tue, 22 Jan 2013 06:11:10 +0000
(14:11 +0800)
arch/arm/mach-rk30/dvfs.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk30/dvfs.c
b/arch/arm/mach-rk30/dvfs.c
index 10ba749267a8f78e6f495b657e25ee8e745039e8..1ab3a49f4fc1b418fd267d79d9e7520bd8f8f389 100755
(executable)
--- 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;
\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