1 From f1673859de1b6f2d80092f4d65217fa8d0d2a36f Mon Sep 17 00:00:00 2001
2 From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
3 Date: Wed, 27 Jan 2016 15:05:55 +0100
4 Subject: [PATCH 320/366] clk: at91: pmc: remove useless capacities handling
6 Capacities only handles interrupts and they are not use anymore. Remove the
9 Acked-by: Stephen Boyd <sboyd@codeaurora.org>
10 Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
11 Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
13 drivers/clk/at91/pmc.c | 128 -------------------------------------------------
14 1 file changed, 128 deletions(-)
16 diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c
17 index dce2855..526df5b 100644
18 --- a/drivers/clk/at91/pmc.c
19 +++ b/drivers/clk/at91/pmc.c
24 -struct at91_pmc_caps {
29 - struct regmap *regmap;
30 - const struct at91_pmc_caps *caps;
33 int of_at91_get_clk_range(struct device_node *np, const char *propname,
34 struct clk_range *range)
36 @@ -50,122 +41,3 @@ int of_at91_get_clk_range(struct device_node *np, const char *propname,
39 EXPORT_SYMBOL_GPL(of_at91_get_clk_range);
41 -static const struct at91_pmc_caps at91rm9200_caps = {
42 - .available_irqs = AT91_PMC_MOSCS | AT91_PMC_LOCKA | AT91_PMC_LOCKB |
43 - AT91_PMC_MCKRDY | AT91_PMC_PCK0RDY |
44 - AT91_PMC_PCK1RDY | AT91_PMC_PCK2RDY |
48 -static const struct at91_pmc_caps at91sam9260_caps = {
49 - .available_irqs = AT91_PMC_MOSCS | AT91_PMC_LOCKA | AT91_PMC_LOCKB |
50 - AT91_PMC_MCKRDY | AT91_PMC_PCK0RDY |
54 -static const struct at91_pmc_caps at91sam9g45_caps = {
55 - .available_irqs = AT91_PMC_MOSCS | AT91_PMC_LOCKA | AT91_PMC_MCKRDY |
56 - AT91_PMC_LOCKU | AT91_PMC_PCK0RDY |
60 -static const struct at91_pmc_caps at91sam9n12_caps = {
61 - .available_irqs = AT91_PMC_MOSCS | AT91_PMC_LOCKA | AT91_PMC_LOCKB |
62 - AT91_PMC_MCKRDY | AT91_PMC_PCK0RDY |
63 - AT91_PMC_PCK1RDY | AT91_PMC_MOSCSELS |
64 - AT91_PMC_MOSCRCS | AT91_PMC_CFDEV,
67 -static const struct at91_pmc_caps at91sam9x5_caps = {
68 - .available_irqs = AT91_PMC_MOSCS | AT91_PMC_LOCKA | AT91_PMC_MCKRDY |
69 - AT91_PMC_LOCKU | AT91_PMC_PCK0RDY |
70 - AT91_PMC_PCK1RDY | AT91_PMC_MOSCSELS |
71 - AT91_PMC_MOSCRCS | AT91_PMC_CFDEV,
74 -static const struct at91_pmc_caps sama5d2_caps = {
75 - .available_irqs = AT91_PMC_MOSCS | AT91_PMC_LOCKA | AT91_PMC_MCKRDY |
76 - AT91_PMC_LOCKU | AT91_PMC_PCK0RDY |
77 - AT91_PMC_PCK1RDY | AT91_PMC_PCK2RDY |
78 - AT91_PMC_MOSCSELS | AT91_PMC_MOSCRCS |
79 - AT91_PMC_CFDEV | AT91_PMC_GCKRDY,
82 -static const struct at91_pmc_caps sama5d3_caps = {
83 - .available_irqs = AT91_PMC_MOSCS | AT91_PMC_LOCKA | AT91_PMC_MCKRDY |
84 - AT91_PMC_LOCKU | AT91_PMC_PCK0RDY |
85 - AT91_PMC_PCK1RDY | AT91_PMC_PCK2RDY |
86 - AT91_PMC_MOSCSELS | AT91_PMC_MOSCRCS |
90 -static void __init of_at91_pmc_setup(struct device_node *np,
91 - const struct at91_pmc_caps *caps)
93 - struct at91_pmc *pmc;
94 - struct regmap *regmap;
96 - regmap = syscon_node_to_regmap(np);
98 - panic("Could not retrieve syscon regmap");
100 - pmc = kzalloc(sizeof(*pmc), GFP_KERNEL);
104 - pmc->regmap = regmap;
107 - regmap_write(pmc->regmap, AT91_PMC_IDR, 0xffffffff);
111 -static void __init of_at91rm9200_pmc_setup(struct device_node *np)
113 - of_at91_pmc_setup(np, &at91rm9200_caps);
115 -CLK_OF_DECLARE(at91rm9200_clk_pmc, "atmel,at91rm9200-pmc",
116 - of_at91rm9200_pmc_setup);
118 -static void __init of_at91sam9260_pmc_setup(struct device_node *np)
120 - of_at91_pmc_setup(np, &at91sam9260_caps);
122 -CLK_OF_DECLARE(at91sam9260_clk_pmc, "atmel,at91sam9260-pmc",
123 - of_at91sam9260_pmc_setup);
125 -static void __init of_at91sam9g45_pmc_setup(struct device_node *np)
127 - of_at91_pmc_setup(np, &at91sam9g45_caps);
129 -CLK_OF_DECLARE(at91sam9g45_clk_pmc, "atmel,at91sam9g45-pmc",
130 - of_at91sam9g45_pmc_setup);
132 -static void __init of_at91sam9n12_pmc_setup(struct device_node *np)
134 - of_at91_pmc_setup(np, &at91sam9n12_caps);
136 -CLK_OF_DECLARE(at91sam9n12_clk_pmc, "atmel,at91sam9n12-pmc",
137 - of_at91sam9n12_pmc_setup);
139 -static void __init of_at91sam9x5_pmc_setup(struct device_node *np)
141 - of_at91_pmc_setup(np, &at91sam9x5_caps);
143 -CLK_OF_DECLARE(at91sam9x5_clk_pmc, "atmel,at91sam9x5-pmc",
144 - of_at91sam9x5_pmc_setup);
146 -static void __init of_sama5d2_pmc_setup(struct device_node *np)
148 - of_at91_pmc_setup(np, &sama5d2_caps);
150 -CLK_OF_DECLARE(sama5d2_clk_pmc, "atmel,sama5d2-pmc",
151 - of_sama5d2_pmc_setup);
153 -static void __init of_sama5d3_pmc_setup(struct device_node *np)
155 - of_at91_pmc_setup(np, &sama5d3_caps);
157 -CLK_OF_DECLARE(sama5d3_clk_pmc, "atmel,sama5d3-pmc",
158 - of_sama5d3_pmc_setup);