Commit 2b8c2efe authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Jesse Barnes

x86/PCI: use dev_printk for PCI bus locality messages

Since pci_bus has a struct device, use dev_printk directly instead
of faking it by hand.
Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent a19f5df7
...@@ -210,12 +210,10 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do ...@@ -210,12 +210,10 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
if (bus && node != -1) { if (bus && node != -1) {
#ifdef CONFIG_ACPI_NUMA #ifdef CONFIG_ACPI_NUMA
if (pxm >= 0) if (pxm >= 0)
printk(KERN_DEBUG dev_printk(KERN_DEBUG, &bus->dev,
"pci %04x:%02x: bus on NUMA node %d (pxm %d)\n", "on NUMA node %d (pxm %d)\n", node, pxm);
domain, busnum, node, pxm);
#else #else
printk(KERN_DEBUG "pci %04x:%02x: bus on NUMA node %d\n", dev_printk(KERN_DEBUG, &bus->dev, "on NUMA node %d\n", node);
domain, busnum, node);
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment