]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/blob - rt-patches/0320-clk-at91-pmc-remove-useless-capacities-handling.patch
Fix memguard and related syscalls
[hercules2020/nv-tegra/linux-4.4.git] / rt-patches / 0320-clk-at91-pmc-remove-useless-capacities-handling.patch
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
5
6 Capacities only handles interrupts and they are not use anymore. Remove the
7 whole initialisation.
8
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>
12 ---
13  drivers/clk/at91/pmc.c | 128 -------------------------------------------------
14  1 file changed, 128 deletions(-)
15
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
20 @@ -19,15 +19,6 @@
21  
22  #include "pmc.h"
23  
24 -struct at91_pmc_caps {
25 -       u32 available_irqs;
26 -};
27 -
28 -struct at91_pmc {
29 -       struct regmap *regmap;
30 -       const struct at91_pmc_caps *caps;
31 -};
32 -
33  int of_at91_get_clk_range(struct device_node *np, const char *propname,
34                           struct clk_range *range)
35  {
36 @@ -50,122 +41,3 @@ int of_at91_get_clk_range(struct device_node *np, const char *propname,
37         return 0;
38  }
39  EXPORT_SYMBOL_GPL(of_at91_get_clk_range);
40 -
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 |
45 -                         AT91_PMC_PCK3RDY,
46 -};
47 -
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 |
51 -                         AT91_PMC_PCK1RDY,
52 -};
53 -
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 |
57 -                         AT91_PMC_PCK1RDY,
58 -};
59 -
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,
65 -};
66 -
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,
72 -};
73 -
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,
80 -};
81 -
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 |
87 -                         AT91_PMC_CFDEV,
88 -};
89 -
90 -static void __init of_at91_pmc_setup(struct device_node *np,
91 -                                    const struct at91_pmc_caps *caps)
92 -{
93 -       struct at91_pmc *pmc;
94 -       struct regmap *regmap;
95 -
96 -       regmap = syscon_node_to_regmap(np);
97 -       if (IS_ERR(regmap))
98 -               panic("Could not retrieve syscon regmap");
99 -
100 -       pmc = kzalloc(sizeof(*pmc), GFP_KERNEL);
101 -       if (!pmc)
102 -               return;
103 -
104 -       pmc->regmap = regmap;
105 -       pmc->caps = caps;
106 -
107 -       regmap_write(pmc->regmap, AT91_PMC_IDR, 0xffffffff);
108 -
109 -}
110 -
111 -static void __init of_at91rm9200_pmc_setup(struct device_node *np)
112 -{
113 -       of_at91_pmc_setup(np, &at91rm9200_caps);
114 -}
115 -CLK_OF_DECLARE(at91rm9200_clk_pmc, "atmel,at91rm9200-pmc",
116 -              of_at91rm9200_pmc_setup);
117 -
118 -static void __init of_at91sam9260_pmc_setup(struct device_node *np)
119 -{
120 -       of_at91_pmc_setup(np, &at91sam9260_caps);
121 -}
122 -CLK_OF_DECLARE(at91sam9260_clk_pmc, "atmel,at91sam9260-pmc",
123 -              of_at91sam9260_pmc_setup);
124 -
125 -static void __init of_at91sam9g45_pmc_setup(struct device_node *np)
126 -{
127 -       of_at91_pmc_setup(np, &at91sam9g45_caps);
128 -}
129 -CLK_OF_DECLARE(at91sam9g45_clk_pmc, "atmel,at91sam9g45-pmc",
130 -              of_at91sam9g45_pmc_setup);
131 -
132 -static void __init of_at91sam9n12_pmc_setup(struct device_node *np)
133 -{
134 -       of_at91_pmc_setup(np, &at91sam9n12_caps);
135 -}
136 -CLK_OF_DECLARE(at91sam9n12_clk_pmc, "atmel,at91sam9n12-pmc",
137 -              of_at91sam9n12_pmc_setup);
138 -
139 -static void __init of_at91sam9x5_pmc_setup(struct device_node *np)
140 -{
141 -       of_at91_pmc_setup(np, &at91sam9x5_caps);
142 -}
143 -CLK_OF_DECLARE(at91sam9x5_clk_pmc, "atmel,at91sam9x5-pmc",
144 -              of_at91sam9x5_pmc_setup);
145 -
146 -static void __init of_sama5d2_pmc_setup(struct device_node *np)
147 -{
148 -       of_at91_pmc_setup(np, &sama5d2_caps);
149 -}
150 -CLK_OF_DECLARE(sama5d2_clk_pmc, "atmel,sama5d2-pmc",
151 -              of_sama5d2_pmc_setup);
152 -
153 -static void __init of_sama5d3_pmc_setup(struct device_node *np)
154 -{
155 -       of_at91_pmc_setup(np, &sama5d3_caps);
156 -}
157 -CLK_OF_DECLARE(sama5d3_clk_pmc, "atmel,sama5d3-pmc",
158 -              of_sama5d3_pmc_setup);
159 -- 
160 1.9.1
161