]> git.baikalelectronics.ru Git - kernel.git/commitdiff
bcm47xx: Replace printk(KERN_ALERT ... pci_devname(dev)) with pci_alert()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 13 Oct 2021 13:49:40 +0000 (16:49 +0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 18 Oct 2021 16:11:15 +0000 (18:11 +0200)
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>
arch/mips/pci/pci-bcm47xx.c

index e8ff8e32a729dea46fcae98bb213c9221d1205ec..ffac06a5ca2091a30145615406cc2b7ed3f01fcf 100644 (file)
@@ -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;
        }
 
@@ -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;
        }
 
@@ -69,8 +67,7 @@ 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;
        }
 
@@ -78,8 +75,7 @@ static int bcm47xx_pcibios_plat_dev_init_bcma(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;
        }