diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-04-12 14:50:18 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-04-25 01:37:40 +0200 |
commit | 1c0035d710dd3bfa86d58f851b8737c7f11a9bbc (patch) | |
tree | 37ebd1a44c408aecf7df5331d2b5a32e81818baf /drivers/clk/clk.c | |
parent | clk: always pass parent_rate into .round_rate (diff) | |
download | linux-1c0035d710dd3bfa86d58f851b8737c7f11a9bbc.tar.xz linux-1c0035d710dd3bfa86d58f851b8737c7f11a9bbc.zip |
clk: pass parent_rate into .set_rate
For most of .set_rate implementation, parent_rate will be used, so just
like passing parent_rate into .recalc_rate, let's pass parent_rate into
.set_rate too.
It also updates the kernel doc for .set_rate ops.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 1ab4f7e5c7ef..62ecac53b0a2 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -848,7 +848,7 @@ static void clk_change_rate(struct clk *clk) old_rate = clk->rate; if (clk->ops->set_rate) - clk->ops->set_rate(clk->hw, clk->new_rate); + clk->ops->set_rate(clk->hw, clk->new_rate, clk->parent->rate); if (clk->ops->recalc_rate) clk->rate = clk->ops->recalc_rate(clk->hw, |