mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-05 18:48:40 +00:00
[POWERPC] Fix warning in powermac pci.c
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>
This commit is contained in:
parent
e71c5c38ed
commit
b5d99e64bc
@ -1191,8 +1191,11 @@ void __init pmac_pcibios_after_init(void)
|
|||||||
* -- BenH
|
* -- BenH
|
||||||
*/
|
*/
|
||||||
for_each_pci_dev(dev) {
|
for_each_pci_dev(dev) {
|
||||||
if ((dev->class >> 16) == PCI_BASE_CLASS_STORAGE)
|
if ((dev->class >> 16) != PCI_BASE_CLASS_STORAGE)
|
||||||
pci_enable_device(dev);
|
continue;
|
||||||
|
if (pci_enable_device(dev))
|
||||||
|
printk(KERN_WARNING
|
||||||
|
"pci: Failed to enable %s\n", pci_name(dev));
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_BLK_DEV_IDE */
|
#endif /* CONFIG_BLK_DEV_IDE */
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user