From: Gabriel FERNANDEZ Date: Tue, 15 Jul 2014 15:20:31 +0000 (+0200) Subject: clk: st: Use round to closest divider flag X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=eee40bb4337c0c4e683ef16e5cc3ad1f784b6fde;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Peter Griffin Signed-off-by: Mike Turquette --- 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) 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;