[POWERPC] Fix warning in powermac pci.c
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Mar 2007 10:27:55 +0000 (11:27 +0100)
committerPaul Mackerras <paulus@samba.org>
Wed, 7 Mar 2007 17:09:34 +0000 (04:09 +1100)
This fixes a warning due to unused result from pci_enable_device() in
powermac pci.c

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/powermac/pci.c

index f42475b27c153c324f150d9e4ff3a352c4cafba3..6fbac308ded649ffcee13fbdacfe2ea04e55959e 100644 (file)
@@ -1191,8 +1191,11 @@ void __init pmac_pcibios_after_init(void)
         * -- BenH
         */
        for_each_pci_dev(dev) {
-               if ((dev->class >> 16) == PCI_BASE_CLASS_STORAGE)
-                       pci_enable_device(dev);
+               if ((dev->class >> 16) != PCI_BASE_CLASS_STORAGE)
+                       continue;
+               if (pci_enable_device(dev))
+                       printk(KERN_WARNING
+                              "pci: Failed to enable %s\n", pci_name(dev));
        }
 #endif /* CONFIG_BLK_DEV_IDE */