| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Maple (970 eval board) setup code |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * (c) Copyright 2004 Benjamin Herrenschmidt (benh@kernel.crashing.org), |
|---|
| 5 | 6 | * 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 | | - * |
|---|
| 12 | 7 | */ |
|---|
| 13 | 8 | |
|---|
| 14 | 9 | #undef DEBUG |
|---|
| .. | .. |
|---|
| 47 | 42 | #include <asm/processor.h> |
|---|
| 48 | 43 | #include <asm/sections.h> |
|---|
| 49 | 44 | #include <asm/prom.h> |
|---|
| 50 | | -#include <asm/pgtable.h> |
|---|
| 51 | 45 | #include <asm/io.h> |
|---|
| 52 | 46 | #include <asm/pci-bridge.h> |
|---|
| 53 | 47 | #include <asm/iommu.h> |
|---|
| .. | .. |
|---|
| 188 | 182 | /* Lookup PCI hosts */ |
|---|
| 189 | 183 | maple_pci_init(); |
|---|
| 190 | 184 | |
|---|
| 191 | | -#ifdef CONFIG_DUMMY_CONSOLE |
|---|
| 192 | | - conswitchp = &dummy_con; |
|---|
| 193 | | -#endif |
|---|
| 194 | 185 | maple_use_rtas_reboot_and_halt_if_present(); |
|---|
| 195 | 186 | |
|---|
| 196 | 187 | printk(KERN_DEBUG "Using native/NAP idle loop\n"); |
|---|
| .. | .. |
|---|
| 237 | 228 | root = of_find_node_by_path("/"); |
|---|
| 238 | 229 | naddr = of_n_addr_cells(root); |
|---|
| 239 | 230 | opprop = of_get_property(root, "platform-open-pic", &opplen); |
|---|
| 240 | | - if (opprop != 0) { |
|---|
| 231 | + if (opprop) { |
|---|
| 241 | 232 | openpic_addr = of_read_number(opprop, naddr); |
|---|
| 242 | 233 | has_isus = (opplen > naddr); |
|---|
| 243 | 234 | printk(KERN_DEBUG "OpenPIC addr: %lx, has ISUs: %d\n", |
|---|