.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/powerpc/platforms/cell/cell_setup.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Modified by Cort Dougan (cort@cs.nmt.edu) |
---|
7 | 8 | * Modified by PPC64 Team, IBM Corp |
---|
8 | 9 | * Modified by Cell Team, IBM Deutschland Entwicklung GmbH |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or |
---|
11 | | - * modify it under the terms of the GNU General Public License |
---|
12 | | - * as published by the Free Software Foundation; either version |
---|
13 | | - * 2 of the License, or (at your option) any later version. |
---|
14 | 10 | */ |
---|
15 | 11 | #undef DEBUG |
---|
16 | 12 | |
---|
.. | .. |
---|
35 | 31 | #include <asm/mmu.h> |
---|
36 | 32 | #include <asm/processor.h> |
---|
37 | 33 | #include <asm/io.h> |
---|
38 | | -#include <asm/pgtable.h> |
---|
39 | 34 | #include <asm/prom.h> |
---|
40 | 35 | #include <asm/rtas.h> |
---|
41 | 36 | #include <asm/pci-bridge.h> |
---|
.. | .. |
---|
131 | 126 | |
---|
132 | 127 | np = phb->dn; |
---|
133 | 128 | model = of_get_property(np, "model", NULL); |
---|
134 | | - if (model == NULL || strcmp(np->name, "pci")) |
---|
| 129 | + if (model == NULL || !of_node_name_eq(np, "pci")) |
---|
135 | 130 | return 0; |
---|
136 | 131 | |
---|
137 | 132 | /* Setup workarounds for spider */ |
---|
.. | .. |
---|
168 | 163 | * platform devices for the PCI host bridges |
---|
169 | 164 | */ |
---|
170 | 165 | for_each_child_of_node(root, np) { |
---|
171 | | - if (np->type == NULL || (strcmp(np->type, "pci") != 0 && |
---|
172 | | - strcmp(np->type, "pciex") != 0)) |
---|
| 166 | + if (!of_node_is_type(np, "pci") && !of_node_is_type(np, "pciex")) |
---|
173 | 167 | continue; |
---|
174 | 168 | of_platform_device_create(np, NULL, NULL); |
---|
175 | 169 | } |
---|
.. | .. |
---|
245 | 239 | init_pci_config_tokens(); |
---|
246 | 240 | |
---|
247 | 241 | cbe_pervasive_init(); |
---|
248 | | -#ifdef CONFIG_DUMMY_CONSOLE |
---|
249 | | - conswitchp = &dummy_con; |
---|
250 | | -#endif |
---|
251 | 242 | |
---|
252 | 243 | mmio_nvram_init(); |
---|
253 | 244 | } |
---|