diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-04-15 14:33:42 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-04-15 14:33:42 -0600 |
commit | 4cf9f24db3954ac5802de24c826b7ebed27760c4 (patch) | |
tree | 4b5c10c284a548c53d5ab6d646fed951fdc3469d /drivers/eisa/pci_eisa.c | |
parent | f6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff) | |
download | linux-4cf9f24db3954ac5802de24c826b7ebed27760c4.tar.gz linux-4cf9f24db3954ac5802de24c826b7ebed27760c4.tar.bz2 linux-4cf9f24db3954ac5802de24c826b7ebed27760c4.zip |
EISA: Use dev_printk() when possible
Use dev_printk() when possible to make messages more useful.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/eisa/pci_eisa.c')
-rw-r--r-- | drivers/eisa/pci_eisa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/eisa/pci_eisa.c b/drivers/eisa/pci_eisa.c index cdae207028a7..0d42ea791060 100644 --- a/drivers/eisa/pci_eisa.c +++ b/drivers/eisa/pci_eisa.c @@ -25,8 +25,7 @@ static int __init pci_eisa_init(struct pci_dev *pdev, int rc; if ((rc = pci_enable_device (pdev))) { - printk (KERN_ERR "pci_eisa : Could not enable device %s\n", - pci_name(pdev)); + dev_err(&pdev->dev, "Could not enable device\n"); return rc; } @@ -38,7 +37,7 @@ static int __init pci_eisa_init(struct pci_dev *pdev, dev_set_drvdata(pci_eisa_root.dev, &pci_eisa_root); if (eisa_root_register (&pci_eisa_root)) { - printk (KERN_ERR "pci_eisa : Could not register EISA root\n"); + dev_err(&pdev->dev, "Could not register EISA root\n"); return -1; } |