clk: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Tue, 31 Mar 2015 18:50:42 +0000 (20:50 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 1 Apr 2015 17:59:27 +0000 (10:59 -0700)
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

__initdata updated to __initconst for
static const struct of_device_id ti_clkdm_match_table[]

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-palmas.c
drivers/clk/st/clkgen-fsyn.c
drivers/clk/st/clkgen-mux.c
drivers/clk/st/clkgen-pll.c
drivers/clk/ti/clk-dra7-atl.c
drivers/clk/ti/clockdomain.c
drivers/clk/versatile/clk-vexpress-osc.c

index 8d459923a15fd591c782752f79393bb20f4b4da9..45a535ab48aaa1cf443d4467f42734b7949b1b47 100644 (file)
@@ -161,7 +161,7 @@ static struct palmas_clks_of_match_data palmas_of_clk32kgaudio = {
        },
 };
 
-static struct of_device_id palmas_clks_of_match[] = {
+static const struct of_device_id palmas_clks_of_match[] = {
        {
                .compatible = "ti,palmas-clk32kg",
                .data = &palmas_of_clk32kg,
index af94ed82cfcb3c94ce9408d57a4a68a4cd08dda6..a917c4c7eaa9c2f6709985c544a4370494e29b38 100644 (file)
@@ -1057,7 +1057,7 @@ static struct clk * __init st_clk_register_quadfs_fsynth(
        return clk;
 }
 
-static struct of_device_id quadfs_of_match[] = {
+static const struct of_device_id quadfs_of_match[] = {
        {
                .compatible = "st,stih416-quadfs216",
                .data = &st_fs216c65_416
index 9a15ec344a85900ea68029c730c02ad01ede5335..fdcff10f6d3089ec389b21522e178db32eaaa911 100644 (file)
@@ -341,7 +341,7 @@ static struct clkgena_divmux_data st_divmux_c32odf3 = {
        .fb_start_bit_idx = 24,
 };
 
-static struct of_device_id clkgena_divmux_of_match[] = {
+static const struct of_device_id clkgena_divmux_of_match[] = {
        {
                .compatible = "st,clkgena-divmux-c65-hs",
                .data = &st_divmux_c65hs,
@@ -479,7 +479,7 @@ static struct clkgena_prediv_data prediv_c32_data = {
        .table = prediv_table16,
 };
 
-static struct of_device_id clkgena_prediv_of_match[] = {
+static const struct of_device_id clkgena_prediv_of_match[] = {
        { .compatible = "st,clkgena-prediv-c65", .data = &prediv_c65_data },
        { .compatible = "st,clkgena-prediv-c32", .data = &prediv_c32_data },
        {}
@@ -586,7 +586,7 @@ static struct clkgen_mux_data stih407_a9_mux_data = {
        .width = 2,
 };
 
-static struct of_device_id mux_of_match[] = {
+static const struct of_device_id mux_of_match[] = {
        {
                .compatible = "st,stih416-clkgenc-vcc-hd",
                .data = &clkgen_mux_c_vcc_hd_416,
@@ -693,7 +693,7 @@ static struct clkgen_vcc_data st_clkgenf_vcc_416 = {
        .lock = &clkgenf_lock,
 };
 
-static struct of_device_id vcc_of_match[] = {
+static const struct of_device_id vcc_of_match[] = {
        { .compatible = "st,stih416-clkgenc", .data = &st_clkgenc_vcc_416 },
        { .compatible = "st,stih416-clkgenf", .data = &st_clkgenf_vcc_416 },
        {}
index 29769d79e3065d8bfd32ed64c2fcc38e5c0d54cb..d204ba85db3a423d6b404cb825c873c2815850e2 100644 (file)
@@ -593,7 +593,7 @@ static struct clk * __init clkgen_odf_register(const char *parent_name,
        return clk;
 }
 
-static struct of_device_id c32_pll_of_match[] = {
+static const struct of_device_id c32_pll_of_match[] = {
        {
                .compatible = "st,plls-c32-a1x-0",
                .data = &st_pll3200c32_a1x_0,
@@ -708,7 +708,7 @@ err:
 }
 CLK_OF_DECLARE(clkgen_c32_pll, "st,clkgen-plls-c32", clkgen_c32_pll_setup);
 
-static struct of_device_id c32_gpu_pll_of_match[] = {
+static const struct of_device_id c32_gpu_pll_of_match[] = {
        {
                .compatible = "st,stih415-gpu-pll-c32",
                .data = &st_pll1200c32_gpu_415,
index 59bb4b39d12e799f6d32d8f5a3d898e4dc9d1c46..d86bc46b93bdfeae630f94a55745315a0d8c1ec8 100644 (file)
@@ -294,7 +294,7 @@ static int of_dra7_atl_clk_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id of_dra7_atl_clk_match_tbl[] = {
+static const struct of_device_id of_dra7_atl_clk_match_tbl[] = {
        { .compatible = "ti,dra7-atl", },
        {},
 };
index b4c5faccaece634c4c9459c6be311f64e4daaf45..35fe1085480cf33da68547e76a7e126d5b95738b 100644 (file)
@@ -52,7 +52,7 @@ static void __init of_ti_clockdomain_setup(struct device_node *node)
        }
 }
 
-static struct of_device_id ti_clkdm_match_table[] __initdata = {
+static const struct of_device_id ti_clkdm_match_table[] __initconst = {
        { .compatible = "ti,clockdomain" },
        { }
 };
index 765f1e0eeeb2a93e92aa3835dd09c4ea3d845e58..89c0609e180b1f40ed1cb8e66fb09f629eac3d8e 100644 (file)
@@ -110,7 +110,7 @@ static int vexpress_osc_probe(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id vexpress_osc_of_match[] = {
+static const struct of_device_id vexpress_osc_of_match[] = {
        { .compatible = "arm,vexpress-osc", },
        {}
 };