mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-03 09:20:14 -05:00
clk: st: Use round to closest divider flag
This patch uses CLK_DIVIDER_ROUND_CLOSEST flag to specify the divider has to round to closest div. Signed-off-by: Gabriel Fernandez <[email protected]> Acked-by: Peter Griffin <[email protected]> Signed-off-by: Mike Turquette <[email protected]>
This commit is contained in:
parent
f1a788ff1f
commit
eee40bb433
1 changed files with 2 additions and 1 deletions
|
|
@ -774,7 +774,8 @@ void __init st_of_clkgen_vcc_setup(struct device_node *np)
|
|||
div->reg = reg + VCC_DIV_OFFSET;
|
||||
div->shift = 2 * i;
|
||||
div->width = 2;
|
||||
div->flags = CLK_DIVIDER_POWER_OF_TWO;
|
||||
div->flags = CLK_DIVIDER_POWER_OF_TWO |
|
||||
CLK_DIVIDER_ROUND_CLOSEST;
|
||||
|
||||
mux->reg = reg + VCC_MUX_OFFSET;
|
||||
mux->shift = 2 * i;
|
||||
|
|
|
|||
Loading…
Reference in a new issue