diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-27 15:48:22 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-11-05 06:11:53 -0500 |
commit | b0494bc8ee449f0534afa92a51e2e3bb27bab69b (patch) | |
tree | f83d79bf689b1247935c506bbf71fbf384359d03 /arch/powerpc/kernel/pci_32.c | |
parent | 25d6e2d7c58ddc4a3b614fc5381591c0cfe66556 (diff) |
powerpc/pci: Cleanup debug printk's
This removes the various DBG() macro from the powerpc PCI code and
makes it use the standard pr_debug instead.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/pci_32.c')
-rw-r--r-- | arch/powerpc/kernel/pci_32.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index 131b1dfa68c6..fdcc898e58db 100644 --- a/arch/powerpc/kernel/pci_32.c +++ b/arch/powerpc/kernel/pci_32.c | |||
@@ -26,12 +26,6 @@ | |||
26 | 26 | ||
27 | #undef DEBUG | 27 | #undef DEBUG |
28 | 28 | ||
29 | #ifdef DEBUG | ||
30 | #define DBG(x...) printk(x) | ||
31 | #else | ||
32 | #define DBG(x...) | ||
33 | #endif | ||
34 | |||
35 | unsigned long isa_io_base = 0; | 29 | unsigned long isa_io_base = 0; |
36 | unsigned long pci_dram_offset = 0; | 30 | unsigned long pci_dram_offset = 0; |
37 | int pcibios_assign_bus_offset = 1; | 31 | int pcibios_assign_bus_offset = 1; |
@@ -275,14 +269,14 @@ pci_busdev_to_OF_node(struct pci_bus *bus, int devfn) | |||
275 | if (!have_of) | 269 | if (!have_of) |
276 | return NULL; | 270 | return NULL; |
277 | 271 | ||
278 | DBG("pci_busdev_to_OF_node(%d,0x%x)\n", bus->number, devfn); | 272 | pr_debug("pci_busdev_to_OF_node(%d,0x%x)\n", bus->number, devfn); |
279 | parent = scan_OF_for_pci_bus(bus); | 273 | parent = scan_OF_for_pci_bus(bus); |
280 | if (parent == NULL) | 274 | if (parent == NULL) |
281 | return NULL; | 275 | return NULL; |
282 | DBG(" parent is %s\n", parent ? parent->full_name : "<NULL>"); | 276 | pr_debug(" parent is %s\n", parent ? parent->full_name : "<NULL>"); |
283 | np = scan_OF_for_pci_dev(parent, devfn); | 277 | np = scan_OF_for_pci_dev(parent, devfn); |
284 | of_node_put(parent); | 278 | of_node_put(parent); |
285 | DBG(" result is %s\n", np ? np->full_name : "<NULL>"); | 279 | pr_debug(" result is %s\n", np ? np->full_name : "<NULL>"); |
286 | 280 | ||
287 | /* XXX most callers don't release the returned node | 281 | /* XXX most callers don't release the returned node |
288 | * mostly because ppc64 doesn't increase the refcount, | 282 | * mostly because ppc64 doesn't increase the refcount, |