PCI: Add wrappers for dev_printk()
Add PCI-specific dev_printk() wrappers and use them to simplify the code slightly. No functional change intended. Signed-off-by: Frederick Lawler <fred@fredlawl.com> [bhelgaas: squash into one patch] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:

committed by
Bjorn Helgaas

parent
c7abb2352c
commit
7506dc7989
@@ -198,14 +198,14 @@ static void pcie_pme_handle_request(struct pci_dev *port, u16 req_id)
|
||||
* assuming that the PME was reported by a PCIe-PCI bridge that
|
||||
* used devfn different from zero.
|
||||
*/
|
||||
dev_dbg(&port->dev, "PME interrupt generated for non-existent device %02x:%02x.%d\n",
|
||||
pci_dbg(port, "PME interrupt generated for non-existent device %02x:%02x.%d\n",
|
||||
busnr, PCI_SLOT(devfn), PCI_FUNC(devfn));
|
||||
found = pcie_pme_from_pci_bridge(bus, 0);
|
||||
}
|
||||
|
||||
out:
|
||||
if (!found)
|
||||
dev_dbg(&port->dev, "Spurious native PME interrupt!\n");
|
||||
pci_dbg(port, "Spurious native PME interrupt!\n");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -345,7 +345,7 @@ static int pcie_pme_probe(struct pcie_device *srv)
|
||||
return ret;
|
||||
}
|
||||
|
||||
dev_info(&port->dev, "Signaling PME with IRQ %d\n", srv->irq);
|
||||
pci_info(port, "Signaling PME with IRQ %d\n", srv->irq);
|
||||
|
||||
pcie_pme_mark_devices(port);
|
||||
pcie_pme_interrupt_enable(port, true);
|
||||
|
Reference in New Issue
Block a user