Skip to content

Commit

Permalink
ARM: imx: using unsigned variable for do_div
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anson Huang authored and Shawn Guo committed Jun 3, 2015
1 parent 35e2916 commit 7a5568c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clk/imx/clk-pllv3.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static long clk_pllv3_av_round_rate(struct clk_hw *hw, unsigned long rate,
unsigned long max_rate = parent_rate * 54;
u32 div;
u32 mfn, mfd = 1000000;
s64 temp64;
u64 temp64;

if (rate > max_rate)
rate = max_rate;
Expand All @@ -239,7 +239,7 @@ static int clk_pllv3_av_set_rate(struct clk_hw *hw, unsigned long rate,
unsigned long max_rate = parent_rate * 54;
u32 val, div;
u32 mfn, mfd = 1000000;
s64 temp64;
u64 temp64;

if (rate < min_rate || rate > max_rate)
return -EINVAL;
Expand Down

0 comments on commit 7a5568c

Please sign in to comment.