Skip to content

Commit

Permalink
bcm47xx: Replace printk(KERN_ALERT ... pci_devname(dev)) with pci_ale…
Browse files Browse the repository at this point in the history
…rt()

Replace printk(KERN_ALERT ... pci_devname(dev)) with pci_alert() which
provides PCI device name in a unified way.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
  • Loading branch information
Andy Shevchenko authored and Thomas Bogendoerfer committed Oct 18, 2021
1 parent a274bdb commit 4beaeb5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions arch/mips/pci/pci-bcm47xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ static int bcm47xx_pcibios_plat_dev_init_ssb(struct pci_dev *dev)

res = ssb_pcibios_plat_dev_init(dev);
if (res < 0) {
printk(KERN_ALERT "PCI: Failed to init device %s\n",
pci_name(dev));
pci_alert(dev, "PCI: Failed to init device\n");
return res;
}

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

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

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

res = bcma_core_pci_plat_dev_init(dev);
if (res < 0) {
printk(KERN_ALERT "PCI: Failed to init device %s\n",
pci_name(dev));
pci_alert(dev, "PCI: Failed to init device\n");
return res;
}

res = bcma_core_pci_pcibios_map_irq(dev);

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

Expand Down

0 comments on commit 4beaeb5

Please sign in to comment.