diff options
author | Gabriel FERNANDEZ <gabriel.fernandez@st.com> | 2014-07-15 11:20:31 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-07-29 01:37:16 -0400 |
commit | eee40bb4337c0c4e683ef16e5cc3ad1f784b6fde (patch) | |
tree | 536996386da90828bbfef6b4e20cdc746ff0999f | |
parent | f1a788ff1f311627b4bcea020845bcfca0accbeb (diff) |
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 <gabriel.fernandez@linaro.org>
Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
-rw-r--r-- | drivers/clk/st/clkgen-mux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/st/clkgen-mux.c b/drivers/clk/st/clkgen-mux.c index 9bdedc8ed82a..79dc40b5cc68 100644 --- a/drivers/clk/st/clkgen-mux.c +++ b/drivers/clk/st/clkgen-mux.c | |||
@@ -774,7 +774,8 @@ void __init st_of_clkgen_vcc_setup(struct device_node *np) | |||
774 | div->reg = reg + VCC_DIV_OFFSET; | 774 | div->reg = reg + VCC_DIV_OFFSET; |
775 | div->shift = 2 * i; | 775 | div->shift = 2 * i; |
776 | div->width = 2; | 776 | div->width = 2; |
777 | div->flags = CLK_DIVIDER_POWER_OF_TWO; | 777 | div->flags = CLK_DIVIDER_POWER_OF_TWO | |
778 | CLK_DIVIDER_ROUND_CLOSEST; | ||
778 | 779 | ||
779 | mux->reg = reg + VCC_MUX_OFFSET; | 780 | mux->reg = reg + VCC_MUX_OFFSET; |
780 | mux->shift = 2 * i; | 781 | mux->shift = 2 * i; |