.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | /* |
---|
2 | 3 | * New-style PCI core. |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * |
---|
7 | 8 | * Modelled after arch/mips/pci/pci.c: |
---|
8 | 9 | * Copyright (C) 2003, 04 Ralf Baechle (ralf@linux-mips.org) |
---|
9 | | - * |
---|
10 | | - * This file is subject to the terms and conditions of the GNU General Public |
---|
11 | | - * License. See the file "COPYING" in the main directory of this archive |
---|
12 | | - * for more details. |
---|
13 | 10 | */ |
---|
14 | 11 | #include <linux/kernel.h> |
---|
15 | 12 | #include <linux/mm.h> |
---|
16 | 13 | #include <linux/pci.h> |
---|
17 | 14 | #include <linux/init.h> |
---|
18 | 15 | #include <linux/types.h> |
---|
19 | | -#include <linux/dma-debug.h> |
---|
20 | 16 | #include <linux/io.h> |
---|
21 | 17 | #include <linux/mutex.h> |
---|
22 | 18 | #include <linux/spinlock.h> |
---|
.. | .. |
---|
123 | 119 | * Do not panic here but later - this might happen before console init. |
---|
124 | 120 | */ |
---|
125 | 121 | if (!hose->io_map_base) { |
---|
126 | | - printk(KERN_WARNING |
---|
127 | | - "registering PCI controller with io_map_base unset\n"); |
---|
| 122 | + pr_warn("registering PCI controller with io_map_base unset\n"); |
---|
128 | 123 | } |
---|
129 | 124 | |
---|
130 | 125 | /* |
---|
.. | .. |
---|
148 | 143 | for (--i; i >= 0; i--) |
---|
149 | 144 | release_resource(&hose->resources[i]); |
---|
150 | 145 | |
---|
151 | | - printk(KERN_WARNING "Skipping PCI bus scan due to resource conflict\n"); |
---|
| 146 | + pr_warn("Skipping PCI bus scan due to resource conflict\n"); |
---|
152 | 147 | return -1; |
---|
153 | 148 | } |
---|
154 | 149 | |
---|
.. | .. |
---|
216 | 211 | pci_devfn, PCI_STATUS, |
---|
217 | 212 | status & status_mask); |
---|
218 | 213 | if (warn) |
---|
219 | | - printk("(%02x:%02x: %04X) ", current_bus, |
---|
220 | | - pci_devfn, status); |
---|
| 214 | + pr_cont("(%02x:%02x: %04X) ", current_bus, pci_devfn, |
---|
| 215 | + status); |
---|
221 | 216 | } |
---|
222 | 217 | } |
---|
223 | 218 | |
---|
.. | .. |
---|
252 | 247 | pci_write_config_word(dev, PCI_STATUS, status & status_mask); |
---|
253 | 248 | |
---|
254 | 249 | if (warn) |
---|
255 | | - printk("(%s: %04X) ", pci_name(dev), status); |
---|
| 250 | + pr_cont("(%s: %04X) ", pci_name(dev), status); |
---|
256 | 251 | } |
---|
257 | 252 | |
---|
258 | 253 | list_for_each_entry(dev, &bus->devices, bus_list) |
---|