hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/sh/drivers/pci/pci.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * New-style PCI core.
34 *
....@@ -6,17 +7,12 @@
67 *
78 * Modelled after arch/mips/pci/pci.c:
89 * 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.
1310 */
1411 #include <linux/kernel.h>
1512 #include <linux/mm.h>
1613 #include <linux/pci.h>
1714 #include <linux/init.h>
1815 #include <linux/types.h>
19
-#include <linux/dma-debug.h>
2016 #include <linux/io.h>
2117 #include <linux/mutex.h>
2218 #include <linux/spinlock.h>
....@@ -123,8 +119,7 @@
123119 * Do not panic here but later - this might happen before console init.
124120 */
125121 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");
128123 }
129124
130125 /*
....@@ -148,7 +143,7 @@
148143 for (--i; i >= 0; i--)
149144 release_resource(&hose->resources[i]);
150145
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");
152147 return -1;
153148 }
154149
....@@ -216,8 +211,8 @@
216211 pci_devfn, PCI_STATUS,
217212 status & status_mask);
218213 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);
221216 }
222217 }
223218
....@@ -252,7 +247,7 @@
252247 pci_write_config_word(dev, PCI_STATUS, status & status_mask);
253248
254249 if (warn)
255
- printk("(%s: %04X) ", pci_name(dev), status);
250
+ pr_cont("(%s: %04X) ", pci_name(dev), status);
256251 }
257252
258253 list_for_each_entry(dev, &bus->devices, bus_list)