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

Configure Feed

Select the types of activity you want to include in your feed.

clk: samsung: exynos5420: do not define number of clocks in bindings

Number of clocks supported by Linux drivers might vary - sometimes we
add new clocks, not exposed previously. Therefore these numbers of
clocks should not be in the bindings, as that prevents changing them.

Define number of clocks per each clock controller inside the driver
directly.

Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://lore.kernel.org/r/20230808082738.122804-7-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

+4 -1
+4 -1
drivers/clk/samsung/clk-exynos5420.c
··· 139 139 #define SRC_KFC 0x28200 140 140 #define DIV_KFC0 0x28500 141 141 142 + /* NOTE: Must be equal to the last clock ID increased by one */ 143 + #define CLKS_NR (CLK_DOUT_PCLK_DREX1 + 1) 144 + 142 145 /* Exynos5x SoC type */ 143 146 enum exynos5x_soc { 144 147 EXYNOS5420, ··· 1590 1587 1591 1588 exynos5x_soc = soc; 1592 1589 1593 - ctx = samsung_clk_init(NULL, reg_base, CLK_NR_CLKS); 1590 + ctx = samsung_clk_init(NULL, reg_base, CLKS_NR); 1594 1591 hws = ctx->clk_data.hws; 1595 1592 1596 1593 samsung_clk_of_register_fixed_ext(ctx, exynos5x_fixed_rate_ext_clks,