diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-06-26 08:00:06 -0400 |
---|---|---|
committer | Tomasz Figa <t.figa@samsung.com> | 2014-07-25 20:49:58 -0400 |
commit | 305cfab0baa837e2b0553968c6a901f6b4aef6ee (patch) | |
tree | 9a2c644f09bdbe20a4b33dcf53edb6852de093ad | |
parent | 45c5b0a69016b68142d93f7609000c8efd51fdde (diff) |
clk: samsung: Make of_device_id array const
Array of struct of_device_id may be be const as expected by
of_match_table field and of_find_matching_node_and_match() function.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
-rw-r--r-- | drivers/clk/samsung/clk-exynos4.c | 2 | ||||
-rw-r--r-- | drivers/clk/samsung/clk-exynos5250.c | 2 | ||||
-rw-r--r-- | drivers/clk/samsung/clk-exynos5420.c | 2 | ||||
-rw-r--r-- | drivers/clk/samsung/clk-exynos5440.c | 2 | ||||
-rw-r--r-- | drivers/clk/samsung/clk.c | 2 | ||||
-rw-r--r-- | drivers/clk/samsung/clk.h | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index 1563ea83f5e8..ac163d7f5bc3 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c | |||
@@ -1254,7 +1254,7 @@ static void __init exynos4_clk_register_finpll(struct samsung_clk_provider *ctx) | |||
1254 | 1254 | ||
1255 | } | 1255 | } |
1256 | 1256 | ||
1257 | static struct of_device_id ext_clk_match[] __initdata = { | 1257 | static const struct of_device_id ext_clk_match[] __initconst = { |
1258 | { .compatible = "samsung,clock-xxti", .data = (void *)0, }, | 1258 | { .compatible = "samsung,clock-xxti", .data = (void *)0, }, |
1259 | { .compatible = "samsung,clock-xusbxti", .data = (void *)1, }, | 1259 | { .compatible = "samsung,clock-xusbxti", .data = (void *)1, }, |
1260 | {}, | 1260 | {}, |
diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c index 5861183d1226..70ec3d2608a1 100644 --- a/drivers/clk/samsung/clk-exynos5250.c +++ b/drivers/clk/samsung/clk-exynos5250.c | |||
@@ -748,7 +748,7 @@ static struct samsung_pll_clock exynos5250_plls[nr_plls] __initdata = { | |||
748 | VPLL_LOCK, VPLL_CON0, NULL), | 748 | VPLL_LOCK, VPLL_CON0, NULL), |
749 | }; | 749 | }; |
750 | 750 | ||
751 | static struct of_device_id ext_clk_match[] __initdata = { | 751 | static const struct of_device_id ext_clk_match[] __initconst = { |
752 | { .compatible = "samsung,clock-xxti", .data = (void *)0, }, | 752 | { .compatible = "samsung,clock-xxti", .data = (void *)0, }, |
753 | { }, | 753 | { }, |
754 | }; | 754 | }; |
diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c index 94e43608bc86..a2e765cf9811 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c | |||
@@ -1192,7 +1192,7 @@ static struct samsung_pll_clock exynos5x_plls[nr_plls] __initdata = { | |||
1192 | KPLL_CON0, NULL), | 1192 | KPLL_CON0, NULL), |
1193 | }; | 1193 | }; |
1194 | 1194 | ||
1195 | static struct of_device_id ext_clk_match[] __initdata = { | 1195 | static const struct of_device_id ext_clk_match[] __initconst = { |
1196 | { .compatible = "samsung,exynos5420-oscclk", .data = (void *)0, }, | 1196 | { .compatible = "samsung,exynos5420-oscclk", .data = (void *)0, }, |
1197 | { }, | 1197 | { }, |
1198 | }; | 1198 | }; |
diff --git a/drivers/clk/samsung/clk-exynos5440.c b/drivers/clk/samsung/clk-exynos5440.c index 2f182f2399ba..00d1d00a41de 100644 --- a/drivers/clk/samsung/clk-exynos5440.c +++ b/drivers/clk/samsung/clk-exynos5440.c | |||
@@ -84,7 +84,7 @@ static struct samsung_gate_clock exynos5440_gate_clks[] __initdata = { | |||
84 | GATE(CLK_CS250_O, "cs250_o", "cs250", CLKEN_OV_VAL, 19, 0, 0), | 84 | GATE(CLK_CS250_O, "cs250_o", "cs250", CLKEN_OV_VAL, 19, 0, 0), |
85 | }; | 85 | }; |
86 | 86 | ||
87 | static struct of_device_id ext_clk_match[] __initdata = { | 87 | static const struct of_device_id ext_clk_match[] __initconst = { |
88 | { .compatible = "samsung,clock-xtal", .data = (void *)0, }, | 88 | { .compatible = "samsung,clock-xtal", .data = (void *)0, }, |
89 | {}, | 89 | {}, |
90 | }; | 90 | }; |
diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c index 98fb31bf5698..deab84d9f37d 100644 --- a/drivers/clk/samsung/clk.c +++ b/drivers/clk/samsung/clk.c | |||
@@ -285,7 +285,7 @@ void __init samsung_clk_register_gate(struct samsung_clk_provider *ctx, | |||
285 | void __init samsung_clk_of_register_fixed_ext(struct samsung_clk_provider *ctx, | 285 | void __init samsung_clk_of_register_fixed_ext(struct samsung_clk_provider *ctx, |
286 | struct samsung_fixed_rate_clock *fixed_rate_clk, | 286 | struct samsung_fixed_rate_clock *fixed_rate_clk, |
287 | unsigned int nr_fixed_rate_clk, | 287 | unsigned int nr_fixed_rate_clk, |
288 | struct of_device_id *clk_matches) | 288 | const struct of_device_id *clk_matches) |
289 | { | 289 | { |
290 | const struct of_device_id *match; | 290 | const struct of_device_id *match; |
291 | struct device_node *clk_np; | 291 | struct device_node *clk_np; |
diff --git a/drivers/clk/samsung/clk.h b/drivers/clk/samsung/clk.h index 92131f972917..66ab36b5cef1 100644 --- a/drivers/clk/samsung/clk.h +++ b/drivers/clk/samsung/clk.h | |||
@@ -333,7 +333,7 @@ extern void __init samsung_clk_of_register_fixed_ext( | |||
333 | struct samsung_clk_provider *ctx, | 333 | struct samsung_clk_provider *ctx, |
334 | struct samsung_fixed_rate_clock *fixed_rate_clk, | 334 | struct samsung_fixed_rate_clock *fixed_rate_clk, |
335 | unsigned int nr_fixed_rate_clk, | 335 | unsigned int nr_fixed_rate_clk, |
336 | struct of_device_id *clk_matches); | 336 | const struct of_device_id *clk_matches); |
337 | 337 | ||
338 | extern void samsung_clk_add_lookup(struct samsung_clk_provider *ctx, | 338 | extern void samsung_clk_add_lookup(struct samsung_clk_provider *ctx, |
339 | struct clk *clk, unsigned int id); | 339 | struct clk *clk, unsigned int id); |