summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie/portdrv_pci.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-06-13 10:52:13 -0600
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-06-25 16:05:19 -0700
commit34438ba602f9b8904aafe7559046ea68e99e88a0 (patch)
treef1cb1b000a091eaa1501a5c53a14143a0e7b4a5e /drivers/pci/pcie/portdrv_pci.c
parent531f254e5cdadb894f04ed27107cdb34c15817ea (diff)
downloadop-kernel-dev-34438ba602f9b8904aafe7559046ea68e99e88a0.zip
op-kernel-dev-34438ba602f9b8904aafe7559046ea68e99e88a0.tar.gz
PCIE: port driver: use dev_printk when possible
Convert printks to use dev_printk(). Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pcie/portdrv_pci.c')
-rw-r--r--drivers/pci/pcie/portdrv_pci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c
index 51d1632..367c9c2 100644
--- a/drivers/pci/pcie/portdrv_pci.c
+++ b/drivers/pci/pcie/portdrv_pci.c
@@ -91,9 +91,8 @@ static int __devinit pcie_portdrv_probe (struct pci_dev *dev,
pci_set_master(dev);
if (!dev->irq && dev->pin) {
- printk(KERN_WARNING
- "%s->Dev[%04x:%04x] has invalid IRQ. Check vendor BIOS\n",
- __func__, dev->vendor, dev->device);
+ dev_warn(&dev->dev, "device [%04x/%04x] has invalid IRQ; "
+ "check vendor BIOS\n", dev->vendor, dev->device);
}
if (pcie_port_device_register(dev)) {
pci_disable_device(dev);
OpenPOWER on IntegriCloud