hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/arm/mach-integrator/integrator_ap.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * linux/arch/arm/mach-integrator/integrator_ap.c
34 *
45 * Copyright (C) 2000-2003 Deep Blue Solutions Ltd
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
196 */
207 #include <linux/kernel.h>
218 #include <linux/init.h>
....@@ -36,7 +23,6 @@
3623 #include "hardware.h"
3724 #include "cm.h"
3825 #include "common.h"
39
-#include "lm.h"
4026
4127 /* Regmap to the AP system controller */
4228 static struct regmap *ap_syscon_map;
....@@ -187,10 +173,7 @@
187173
188174 static void __init ap_init_of(void)
189175 {
190
- u32 sc_dec;
191176 struct device_node *syscon;
192
- int ret;
193
- int i;
194177
195178 of_platform_default_populate(NULL, ap_auxdata_lookup, NULL);
196179
....@@ -201,33 +184,6 @@
201184 if (IS_ERR(ap_syscon_map)) {
202185 pr_crit("could not find Integrator/AP system controller\n");
203186 return;
204
- }
205
-
206
- ret = regmap_read(ap_syscon_map,
207
- INTEGRATOR_SC_DEC_OFFSET,
208
- &sc_dec);
209
- if (ret) {
210
- pr_crit("could not read from Integrator/AP syscon\n");
211
- return;
212
- }
213
-
214
- for (i = 0; i < 4; i++) {
215
- struct lm_device *lmdev;
216
-
217
- if ((sc_dec & (16 << i)) == 0)
218
- continue;
219
-
220
- lmdev = kzalloc(sizeof(struct lm_device), GFP_KERNEL);
221
- if (!lmdev)
222
- continue;
223
-
224
- lmdev->resource.start = 0xc0000000 + 0x10000000 * i;
225
- lmdev->resource.end = lmdev->resource.start + 0x0fffffff;
226
- lmdev->resource.flags = IORESOURCE_MEM;
227
- lmdev->irq = irq_of_parse_and_map(syscon, i);
228
- lmdev->id = i;
229
-
230
- lm_device_register(lmdev);
231187 }
232188 }
233189