diff options
| author | Emilio López <emilio@elopez.com.ar> | 2014-07-27 23:49:43 -0400 |
|---|---|---|
| committer | Mike Turquette <mturquette@linaro.org> | 2014-07-28 18:39:22 -0400 |
| commit | 381c1ccd65f893fedfc608a907a1a06b73d98ca8 (patch) | |
| tree | 387a84606692dd303d9c3a8203354c8762fd4112 | |
| parent | 89a9456d6ecdf328a66a561a43e9bdc3c2a2208d (diff) | |
clk: sunxi: staticize structures and arrays
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>
| -rw-r--r-- | drivers/clk/sunxi/clk-sun6i-apb0-gates.c | 2 | ||||
| -rw-r--r-- | drivers/clk/sunxi/clk-sun6i-apb0.c | 2 | ||||
| -rw-r--r-- | drivers/clk/sunxi/clk-sun6i-ar100.c | 4 | ||||
| -rw-r--r-- | drivers/clk/sunxi/clk-sun8i-apb0.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/clk/sunxi/clk-sun6i-apb0-gates.c b/drivers/clk/sunxi/clk-sun6i-apb0-gates.c index ef5e419ef676..e10d0521ec76 100644 --- a/drivers/clk/sunxi/clk-sun6i-apb0-gates.c +++ b/drivers/clk/sunxi/clk-sun6i-apb0-gates.c | |||
| @@ -29,7 +29,7 @@ static const struct gates_data sun8i_a23_apb0_gates __initconst = { | |||
| 29 | .mask = {0x5D}, | 29 | .mask = {0x5D}, |
| 30 | }; | 30 | }; |
| 31 | 31 | ||
| 32 | const struct of_device_id sun6i_a31_apb0_gates_clk_dt_ids[] = { | 32 | static const struct of_device_id sun6i_a31_apb0_gates_clk_dt_ids[] = { |
| 33 | { .compatible = "allwinner,sun6i-a31-apb0-gates-clk", .data = &sun6i_a31_apb0_gates }, | 33 | { .compatible = "allwinner,sun6i-a31-apb0-gates-clk", .data = &sun6i_a31_apb0_gates }, |
| 34 | { .compatible = "allwinner,sun8i-a23-apb0-gates-clk", .data = &sun8i_a23_apb0_gates }, | 34 | { .compatible = "allwinner,sun8i-a23-apb0-gates-clk", .data = &sun8i_a23_apb0_gates }, |
| 35 | { /* sentinel */ } | 35 | { /* sentinel */ } |
diff --git a/drivers/clk/sunxi/clk-sun6i-apb0.c b/drivers/clk/sunxi/clk-sun6i-apb0.c index 11f17c34c2ae..1fa23371c8c6 100644 --- a/drivers/clk/sunxi/clk-sun6i-apb0.c +++ b/drivers/clk/sunxi/clk-sun6i-apb0.c | |||
| @@ -57,7 +57,7 @@ static int sun6i_a31_apb0_clk_probe(struct platform_device *pdev) | |||
| 57 | return of_clk_add_provider(np, of_clk_src_simple_get, clk); | 57 | return of_clk_add_provider(np, of_clk_src_simple_get, clk); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | const struct of_device_id sun6i_a31_apb0_clk_dt_ids[] = { | 60 | static const struct of_device_id sun6i_a31_apb0_clk_dt_ids[] = { |
| 61 | { .compatible = "allwinner,sun6i-a31-apb0-clk" }, | 61 | { .compatible = "allwinner,sun6i-a31-apb0-clk" }, |
| 62 | { /* sentinel */ } | 62 | { /* sentinel */ } |
| 63 | }; | 63 | }; |
diff --git a/drivers/clk/sunxi/clk-sun6i-ar100.c b/drivers/clk/sunxi/clk-sun6i-ar100.c index f73cc051f0dd..eca8ca025b6a 100644 --- a/drivers/clk/sunxi/clk-sun6i-ar100.c +++ b/drivers/clk/sunxi/clk-sun6i-ar100.c | |||
| @@ -160,7 +160,7 @@ static int ar100_set_rate(struct clk_hw *hw, unsigned long rate, | |||
| 160 | return 0; | 160 | return 0; |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | struct clk_ops ar100_ops = { | 163 | static struct clk_ops ar100_ops = { |
| 164 | .recalc_rate = ar100_recalc_rate, | 164 | .recalc_rate = ar100_recalc_rate, |
| 165 | .determine_rate = ar100_determine_rate, | 165 | .determine_rate = ar100_determine_rate, |
| 166 | .set_parent = ar100_set_parent, | 166 | .set_parent = ar100_set_parent, |
| @@ -213,7 +213,7 @@ static int sun6i_a31_ar100_clk_probe(struct platform_device *pdev) | |||
| 213 | return of_clk_add_provider(np, of_clk_src_simple_get, clk); | 213 | return of_clk_add_provider(np, of_clk_src_simple_get, clk); |
| 214 | } | 214 | } |
| 215 | 215 | ||
| 216 | const struct of_device_id sun6i_a31_ar100_clk_dt_ids[] = { | 216 | static const struct of_device_id sun6i_a31_ar100_clk_dt_ids[] = { |
| 217 | { .compatible = "allwinner,sun6i-a31-ar100-clk" }, | 217 | { .compatible = "allwinner,sun6i-a31-ar100-clk" }, |
| 218 | { /* sentinel */ } | 218 | { /* sentinel */ } |
| 219 | }; | 219 | }; |
diff --git a/drivers/clk/sunxi/clk-sun8i-apb0.c b/drivers/clk/sunxi/clk-sun8i-apb0.c index 196a4997f9d9..1f5ba9b4b8cd 100644 --- a/drivers/clk/sunxi/clk-sun8i-apb0.c +++ b/drivers/clk/sunxi/clk-sun8i-apb0.c | |||
| @@ -48,7 +48,7 @@ static int sun8i_a23_apb0_clk_probe(struct platform_device *pdev) | |||
| 48 | return of_clk_add_provider(np, of_clk_src_simple_get, clk); | 48 | return of_clk_add_provider(np, of_clk_src_simple_get, clk); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | const struct of_device_id sun8i_a23_apb0_clk_dt_ids[] = { | 51 | static const struct of_device_id sun8i_a23_apb0_clk_dt_ids[] = { |
| 52 | { .compatible = "allwinner,sun8i-a23-apb0-clk" }, | 52 | { .compatible = "allwinner,sun8i-a23-apb0-clk" }, |
| 53 | { /* sentinel */ } | 53 | { /* sentinel */ } |
| 54 | }; | 54 | }; |
