Skip to content

Commit 4beaeb5

Browse files
andy-shevtsbogend
authored andcommitted
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: Andy Shevchenko <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent a274bdb commit 4beaeb5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

arch/mips/pci/pci-bcm47xx.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ static int bcm47xx_pcibios_plat_dev_init_ssb(struct pci_dev *dev)
4141

4242
res = ssb_pcibios_plat_dev_init(dev);
4343
if (res < 0) {
44-
printk(KERN_ALERT "PCI: Failed to init device %s\n",
45-
pci_name(dev));
44+
pci_alert(dev, "PCI: Failed to init device\n");
4645
return res;
4746
}
4847

@@ -52,8 +51,7 @@ static int bcm47xx_pcibios_plat_dev_init_ssb(struct pci_dev *dev)
5251

5352
/* IRQ-0 and IRQ-1 are software interrupts. */
5453
if (res < 2) {
55-
printk(KERN_ALERT "PCI: Failed to map IRQ of device %s\n",
56-
pci_name(dev));
54+
pci_alert(dev, "PCI: Failed to map IRQ of device\n");
5755
return res;
5856
}
5957

@@ -69,17 +67,15 @@ static int bcm47xx_pcibios_plat_dev_init_bcma(struct pci_dev *dev)
6967

7068
res = bcma_core_pci_plat_dev_init(dev);
7169
if (res < 0) {
72-
printk(KERN_ALERT "PCI: Failed to init device %s\n",
73-
pci_name(dev));
70+
pci_alert(dev, "PCI: Failed to init device\n");
7471
return res;
7572
}
7673

7774
res = bcma_core_pci_pcibios_map_irq(dev);
7875

7976
/* IRQ-0 and IRQ-1 are software interrupts. */
8077
if (res < 2) {
81-
printk(KERN_ALERT "PCI: Failed to map IRQ of device %s\n",
82-
pci_name(dev));
78+
pci_alert(dev, "PCI: Failed to map IRQ of device\n");
8379
return res;
8480
}
8581

0 commit comments

Comments
 (0)