Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: sunxi: Fix sun8i-a23-apb0-clk divider flags

The APB0 clock on A23 is a zero-based divider, not a power-of-two based
divider.

Note that this patch does not apply cleanly to kernels before 4.5-rc1,
which added CLK_OF_DECLARE support to this driver.

Fixes: 57a1fbf28424 ("clk: sunxi: Add A23 APB0 divider clock support")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

authored by

Chen-Yu Tsai and committed by
Maxime Ripard
33f60d02 b0b6413f

+1 -1
+1 -1
drivers/clk/sunxi/clk-sun8i-apb0.c
··· 36 36 37 37 /* The A23 APB0 clock is a standard 2 bit wide divider clock */ 38 38 clk = clk_register_divider(NULL, clk_name, clk_parent, 0, reg, 39 - 0, 2, CLK_DIVIDER_POWER_OF_TWO, NULL); 39 + 0, 2, 0, NULL); 40 40 if (IS_ERR(clk)) 41 41 return clk; 42 42