clk: sunxi: staticize structures and arrays
authorEmilio López <emilio@elopez.com.ar>
Mon, 28 Jul 2014 03:49:43 +0000 (00:49 -0300)
committerMike Turquette <mturquette@linaro.org>
Mon, 28 Jul 2014 22:39:22 +0000 (15:39 -0700)
There are some structs and arrays on the driver that are not used
anywhere else. Let's mark them as static.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/sunxi/clk-sun6i-apb0-gates.c
drivers/clk/sunxi/clk-sun6i-apb0.c
drivers/clk/sunxi/clk-sun6i-ar100.c
drivers/clk/sunxi/clk-sun8i-apb0.c

index ef5e419ef67650f082c7ffa03146a8a053548970..e10d0521ec768532245dc096a03774cb6ae907b4 100644 (file)
@@ -29,7 +29,7 @@ static const struct gates_data sun8i_a23_apb0_gates __initconst = {
        .mask = {0x5D},
 };
 
-const struct of_device_id sun6i_a31_apb0_gates_clk_dt_ids[] = {
+static const struct of_device_id sun6i_a31_apb0_gates_clk_dt_ids[] = {
        { .compatible = "allwinner,sun6i-a31-apb0-gates-clk", .data = &sun6i_a31_apb0_gates },
        { .compatible = "allwinner,sun8i-a23-apb0-gates-clk", .data = &sun8i_a23_apb0_gates },
        { /* sentinel */ }
index 11f17c34c2aedaba26d3cb1cac26f6b4b9148bf8..1fa23371c8c6e3fb25fb14de5dc6d8b325392020 100644 (file)
@@ -57,7 +57,7 @@ static int sun6i_a31_apb0_clk_probe(struct platform_device *pdev)
        return of_clk_add_provider(np, of_clk_src_simple_get, clk);
 }
 
-const struct of_device_id sun6i_a31_apb0_clk_dt_ids[] = {
+static const struct of_device_id sun6i_a31_apb0_clk_dt_ids[] = {
        { .compatible = "allwinner,sun6i-a31-apb0-clk" },
        { /* sentinel */ }
 };
index f73cc051f0dde4000d457273c2c7a90909e4d3e3..eca8ca025b6aa0f01a2472fba41c5bd811e4a6a1 100644 (file)
@@ -160,7 +160,7 @@ static int ar100_set_rate(struct clk_hw *hw, unsigned long rate,
        return 0;
 }
 
-struct clk_ops ar100_ops = {
+static struct clk_ops ar100_ops = {
        .recalc_rate = ar100_recalc_rate,
        .determine_rate = ar100_determine_rate,
        .set_parent = ar100_set_parent,
@@ -213,7 +213,7 @@ static int sun6i_a31_ar100_clk_probe(struct platform_device *pdev)
        return of_clk_add_provider(np, of_clk_src_simple_get, clk);
 }
 
-const struct of_device_id sun6i_a31_ar100_clk_dt_ids[] = {
+static const struct of_device_id sun6i_a31_ar100_clk_dt_ids[] = {
        { .compatible = "allwinner,sun6i-a31-ar100-clk" },
        { /* sentinel */ }
 };
index 196a4997f9d96ca3c9133b4d1902717f3c16b558..1f5ba9b4b8cd085b21fdeb7c6ee48d696de6d34c 100644 (file)
@@ -48,7 +48,7 @@ static int sun8i_a23_apb0_clk_probe(struct platform_device *pdev)
        return of_clk_add_provider(np, of_clk_src_simple_get, clk);
 }
 
-const struct of_device_id sun8i_a23_apb0_clk_dt_ids[] = {
+static const struct of_device_id sun8i_a23_apb0_clk_dt_ids[] = {
        { .compatible = "allwinner,sun8i-a23-apb0-clk" },
        { /* sentinel */ }
 };