hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/powerpc/platforms/maple/setup.c
....@@ -1,14 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Maple (970 eval board) setup code
34 *
45 * (c) Copyright 2004 Benjamin Herrenschmidt (benh@kernel.crashing.org),
56 * IBM Corp.
6
- *
7
- * This program is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU General Public License
9
- * as published by the Free Software Foundation; either version
10
- * 2 of the License, or (at your option) any later version.
11
- *
127 */
138
149 #undef DEBUG
....@@ -47,7 +42,6 @@
4742 #include <asm/processor.h>
4843 #include <asm/sections.h>
4944 #include <asm/prom.h>
50
-#include <asm/pgtable.h>
5145 #include <asm/io.h>
5246 #include <asm/pci-bridge.h>
5347 #include <asm/iommu.h>
....@@ -188,9 +182,6 @@
188182 /* Lookup PCI hosts */
189183 maple_pci_init();
190184
191
-#ifdef CONFIG_DUMMY_CONSOLE
192
- conswitchp = &dummy_con;
193
-#endif
194185 maple_use_rtas_reboot_and_halt_if_present();
195186
196187 printk(KERN_DEBUG "Using native/NAP idle loop\n");
....@@ -237,7 +228,7 @@
237228 root = of_find_node_by_path("/");
238229 naddr = of_n_addr_cells(root);
239230 opprop = of_get_property(root, "platform-open-pic", &opplen);
240
- if (opprop != 0) {
231
+ if (opprop) {
241232 openpic_addr = of_read_number(opprop, naddr);
242233 has_isus = (opplen > naddr);
243234 printk(KERN_DEBUG "OpenPIC addr: %lx, has ISUs: %d\n",