diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-01-21 23:41:56 +0100 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-01-23 11:44:48 +0100 |
commit | c9520be3839063bbb50aabec531cc0d0b8595564 (patch) | |
tree | 86472a207ff2c955cdc0889d29ad29c99b07081d /drivers/clk/sunxi-ng | |
parent | e66f81bbd7464621215219b72a0523f1b1078fae (diff) | |
download | linux-stable-c9520be3839063bbb50aabec531cc0d0b8595564.tar.gz linux-stable-c9520be3839063bbb50aabec531cc0d0b8595564.tar.bz2 linux-stable-c9520be3839063bbb50aabec531cc0d0b8595564.zip |
clk: sunxi-ng: mult: Fix minimum in round rate
The previous code was always taking 1 as the minimum in it's round_rate
function, ignoring entirely what was set as minimum in the clock
definition.
Make sure that's not the case anymore.
Fixes: 2beaa601c849 ("clk: sunxi-ng: Implement minimum for multipliers")
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/clk/sunxi-ng')
-rw-r--r-- | drivers/clk/sunxi-ng/ccu_mult.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sunxi-ng/ccu_mult.c b/drivers/clk/sunxi-ng/ccu_mult.c index 8b7ee7baa85b..a52162195e07 100644 --- a/drivers/clk/sunxi-ng/ccu_mult.c +++ b/drivers/clk/sunxi-ng/ccu_mult.c @@ -40,7 +40,7 @@ static unsigned long ccu_mult_round_rate(struct ccu_mux_internal *mux, struct ccu_mult *cm = data; struct _ccu_mult _cm; - _cm.min = 1; + _cm.min = cm->mult.min; _cm.max = 1 << cm->mult.width; ccu_mult_find_best(parent_rate, rate, &_cm); |