diff options
author | Anson Huang <b20788@freescale.com> | 2015-05-07 12:16:51 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2015-06-03 02:49:32 -0400 |
commit | 7a5568ce08c6f0390c73cc62a6f124e9073ebc97 (patch) | |
tree | 77c1c64c186da462ab90617f74ce91895dc552ee | |
parent | 35e2916f70e3be767c5c8ef6cc80bc5398b8914c (diff) |
ARM: imx: using unsigned variable for do_div
The definition of do_div uses unsigned long long
variable as its first parameter, better to pass
a u64 variable as first parameter when calling
do_div function.
Signed-off-by: Anson Huang <b20788@freescale.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r-- | drivers/clk/imx/clk-pllv3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index 641ebc508920..260035be11ac 100644 --- a/drivers/clk/imx/clk-pllv3.c +++ b/drivers/clk/imx/clk-pllv3.c | |||
@@ -215,7 +215,7 @@ static long clk_pllv3_av_round_rate(struct clk_hw *hw, unsigned long rate, | |||
215 | unsigned long max_rate = parent_rate * 54; | 215 | unsigned long max_rate = parent_rate * 54; |
216 | u32 div; | 216 | u32 div; |
217 | u32 mfn, mfd = 1000000; | 217 | u32 mfn, mfd = 1000000; |
218 | s64 temp64; | 218 | u64 temp64; |
219 | 219 | ||
220 | if (rate > max_rate) | 220 | if (rate > max_rate) |
221 | rate = max_rate; | 221 | rate = max_rate; |
@@ -239,7 +239,7 @@ static int clk_pllv3_av_set_rate(struct clk_hw *hw, unsigned long rate, | |||
239 | unsigned long max_rate = parent_rate * 54; | 239 | unsigned long max_rate = parent_rate * 54; |
240 | u32 val, div; | 240 | u32 val, div; |
241 | u32 mfn, mfd = 1000000; | 241 | u32 mfn, mfd = 1000000; |
242 | s64 temp64; | 242 | u64 temp64; |
243 | 243 | ||
244 | if (rate < min_rate || rate > max_rate) | 244 | if (rate < min_rate || rate > max_rate) |
245 | return -EINVAL; | 245 | return -EINVAL; |