Skip to content

Commit 6784176

Browse files
committed
clk: samsung: exynos5410: 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 <[email protected]> Reviewed-by: Chanwoo Choi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 727d0f0 commit 6784176

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/clk/samsung/clk-exynos5410.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
#define SRC_KFC 0x28200
5757
#define DIV_KFC0 0x28500
5858

59+
/* NOTE: Must be equal to the last clock ID increased by one */
60+
#define CLKS_NR 512
61+
5962
/* list of PLLs */
6063
enum exynos5410_plls {
6164
apll, cpll, epll, mpll,
@@ -260,7 +263,7 @@ static const struct samsung_cmu_info cmu __initconst = {
260263
.nr_div_clks = ARRAY_SIZE(exynos5410_div_clks),
261264
.gate_clks = exynos5410_gate_clks,
262265
.nr_gate_clks = ARRAY_SIZE(exynos5410_gate_clks),
263-
.nr_clk_ids = CLK_NR_CLKS,
266+
.nr_clk_ids = CLKS_NR,
264267
};
265268

266269
/* register exynos5410 clocks */

0 commit comments

Comments
 (0)