Commit 4beaeb5f authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Thomas Bogendoerfer

bcm47xx: Replace printk(KERN_ALERT ... pci_devname(dev)) with pci_alert()

Replace printk(KERN_ALERT ... pci_devname(dev)) with pci_alert() which
provides PCI device name in a unified way.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent a274bdbd
...@@ -41,8 +41,7 @@ static int bcm47xx_pcibios_plat_dev_init_ssb(struct pci_dev *dev) ...@@ -41,8 +41,7 @@ static int bcm47xx_pcibios_plat_dev_init_ssb(struct pci_dev *dev)
res = ssb_pcibios_plat_dev_init(dev); res = ssb_pcibios_plat_dev_init(dev);
if (res < 0) { if (res < 0) {
printk(KERN_ALERT "PCI: Failed to init device %s\n", pci_alert(dev, "PCI: Failed to init device\n");
pci_name(dev));
return res; return res;
} }
...@@ -52,8 +51,7 @@ static int bcm47xx_pcibios_plat_dev_init_ssb(struct pci_dev *dev) ...@@ -52,8 +51,7 @@ static int bcm47xx_pcibios_plat_dev_init_ssb(struct pci_dev *dev)
/* IRQ-0 and IRQ-1 are software interrupts. */ /* IRQ-0 and IRQ-1 are software interrupts. */
if (res < 2) { if (res < 2) {
printk(KERN_ALERT "PCI: Failed to map IRQ of device %s\n", pci_alert(dev, "PCI: Failed to map IRQ of device\n");
pci_name(dev));
return res; return res;
} }
...@@ -69,8 +67,7 @@ static int bcm47xx_pcibios_plat_dev_init_bcma(struct pci_dev *dev) ...@@ -69,8 +67,7 @@ static int bcm47xx_pcibios_plat_dev_init_bcma(struct pci_dev *dev)
res = bcma_core_pci_plat_dev_init(dev); res = bcma_core_pci_plat_dev_init(dev);
if (res < 0) { if (res < 0) {
printk(KERN_ALERT "PCI: Failed to init device %s\n", pci_alert(dev, "PCI: Failed to init device\n");
pci_name(dev));
return res; return res;
} }
...@@ -78,8 +75,7 @@ static int bcm47xx_pcibios_plat_dev_init_bcma(struct pci_dev *dev) ...@@ -78,8 +75,7 @@ static int bcm47xx_pcibios_plat_dev_init_bcma(struct pci_dev *dev)
/* IRQ-0 and IRQ-1 are software interrupts. */ /* IRQ-0 and IRQ-1 are software interrupts. */
if (res < 2) { if (res < 2) {
printk(KERN_ALERT "PCI: Failed to map IRQ of device %s\n", pci_alert(dev, "PCI: Failed to map IRQ of device\n");
pci_name(dev));
return res; return res;
} }
......
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