mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
clk: divider: return real rate instead of divider value
Commitbca9690b94("clk: divider: Make generic for usage elsewhere") returned only the divider value for read-only dividers instead of the actual rate. Fixes:bca9690b94("clk: divider: Make generic for usage elsewhere") Signed-off-by: Heiko Stuebner <[email protected]> Reviewed-by: James Hogan <[email protected]> Tested-by: James Hogan <[email protected]> Acked-by: Stephen Boyd <[email protected]> Signed-off-by: Michael Turquette <[email protected]>
This commit is contained in:
parent
a456fe3d27
commit
2f7bf4af5c
1 changed files with 1 additions and 1 deletions
|
|
@ -353,7 +353,7 @@ static long clk_divider_round_rate(struct clk_hw *hw, unsigned long rate,
|
|||
bestdiv = readl(divider->reg) >> divider->shift;
|
||||
bestdiv &= div_mask(divider->width);
|
||||
bestdiv = _get_div(divider->table, bestdiv, divider->flags);
|
||||
return bestdiv;
|
||||
return DIV_ROUND_UP(*prate, bestdiv);
|
||||
}
|
||||
|
||||
return divider_round_rate(hw, rate, prate, divider->table,
|
||||
|
|
|
|||
Loading…
Reference in a new issue