projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e557918
)
ti/fapll: fix wrong do_div() usage
author
Nicolas Pitre
<nicolas.pitre@linaro.org>
Wed, 4 Nov 2015 04:17:11 +0000
(23:17 -0500)
committer
Nicolas Pitre
<nicolas.pitre@linaro.org>
Mon, 16 Nov 2015 17:37:55 +0000
(12:37 -0500)
do_div() is meant to be used with an unsigned dividend.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
drivers/clk/ti/fapll.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/ti/fapll.c
b/drivers/clk/ti/fapll.c
index f4b2e9888bdf3c3079b0854b1c04c65a5201c5db..66a0d0ed8b55064ac7a888a1d2e6441d3021ceb1 100644
(file)
--- 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,
{
struct fapll_data *fd = to_fapll(hw);
u32 fapll_n, fapll_p, v;
-
long long
rate;
+
u64
rate;
if (ti_fapll_clock_is_bypass(fd))
return parent_rate;
@@
-314,7
+314,7
@@
static unsigned long ti_fapll_synth_recalc_rate(struct clk_hw *hw,
{
struct fapll_synth *synth = to_synth(hw);
u32 synth_div_m;
-
long long
rate;
+
u64
rate;
/* The audio_pll_clk1 is hardwired to produce 32.768KiHz clock */
if (!synth->div)
This page took
0.025473 seconds
and
5
git commands to generate.