Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Nicolas Pitre and committed by
Tero Kristo
c51185b4 df976f5d

+2 -2
+2 -2
drivers/clk/ti/fapll.c
··· 168 168 { 169 169 struct fapll_data *fd = to_fapll(hw); 170 170 u32 fapll_n, fapll_p, v; 171 - long long rate; 171 + u64 rate; 172 172 173 173 if (ti_fapll_clock_is_bypass(fd)) 174 174 return parent_rate; ··· 314 314 { 315 315 struct fapll_synth *synth = to_synth(hw); 316 316 u32 synth_div_m; 317 - long long rate; 317 + u64 rate; 318 318 319 319 /* The audio_pll_clk1 is hardwired to produce 32.768KiHz clock */ 320 320 if (!synth->div)