diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2015-11-03 23:17:11 -0500 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2015-11-24 04:30:27 -0500 |
commit | c51185b45c43737faca4574d790489a1bd8cfd11 (patch) | |
tree | 77c56a444861e6bfe88075ebc663b2eee7c47cc1 /drivers/clk/ti | |
parent | df976f5d95028e26b4c967b24518fe340f8a726d (diff) |
clk: ti: fapll: fix wrong do_div() usage
do_div() is meant to be used with an unsigned dividend.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'drivers/clk/ti')
-rw-r--r-- | drivers/clk/ti/fapll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/ti/fapll.c b/drivers/clk/ti/fapll.c index f4b2e9888bdf..66a0d0ed8b55 100644 --- a/drivers/clk/ti/fapll.c +++ b/drivers/clk/ti/fapll.c | |||
@@ -168,7 +168,7 @@ static unsigned long ti_fapll_recalc_rate(struct clk_hw *hw, | |||
168 | { | 168 | { |
169 | struct fapll_data *fd = to_fapll(hw); | 169 | struct fapll_data *fd = to_fapll(hw); |
170 | u32 fapll_n, fapll_p, v; | 170 | u32 fapll_n, fapll_p, v; |
171 | long long rate; | 171 | u64 rate; |
172 | 172 | ||
173 | if (ti_fapll_clock_is_bypass(fd)) | 173 | if (ti_fapll_clock_is_bypass(fd)) |
174 | return parent_rate; | 174 | return parent_rate; |
@@ -314,7 +314,7 @@ static unsigned long ti_fapll_synth_recalc_rate(struct clk_hw *hw, | |||
314 | { | 314 | { |
315 | struct fapll_synth *synth = to_synth(hw); | 315 | struct fapll_synth *synth = to_synth(hw); |
316 | u32 synth_div_m; | 316 | u32 synth_div_m; |
317 | long long rate; | 317 | u64 rate; |
318 | 318 | ||
319 | /* The audio_pll_clk1 is hardwired to produce 32.768KiHz clock */ | 319 | /* The audio_pll_clk1 is hardwired to produce 32.768KiHz clock */ |
320 | if (!synth->div) | 320 | if (!synth->div) |