From 436456dfb06023ce3b18b15ef28cfc0becebb735 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=99=88=E4=BA=AE?= Date: Sun, 25 May 2014 19:36:50 -0700 Subject: [PATCH] dvfs: avoid round a rate two times since it may cause round wrong value at second time --- arch/arm/mach-rockchip/dvfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/dvfs.c b/arch/arm/mach-rockchip/dvfs.c index e2922a141d21..3919faf0f973 100644 --- a/arch/arm/mach-rockchip/dvfs.c +++ b/arch/arm/mach-rockchip/dvfs.c @@ -895,9 +895,9 @@ static int dvfs_target(struct dvfs_node *clk_dvfs_node, unsigned long rate) /* scale rate */ if (clk_dvfs_node->clk_dvfs_target) { - ret = clk_dvfs_node->clk_dvfs_target(clk, new_rate); + ret = clk_dvfs_node->clk_dvfs_target(clk, rate); } else { - ret = clk_set_rate(clk, new_rate); + ret = clk_set_rate(clk, rate); } if (ret) { -- 2.34.1