aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/pci-common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index 8935661d12d0..b6d4767e4e27 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -1147,7 +1147,10 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
1147 r = &dev->resource[idx]; 1147 r = &dev->resource[idx];
1148 if (!(r->flags & (IORESOURCE_IO | IORESOURCE_MEM))) 1148 if (!(r->flags & (IORESOURCE_IO | IORESOURCE_MEM)))
1149 continue; 1149 continue;
1150 if (r->flags & IORESOURCE_UNSET) { 1150 if ((idx == PCI_ROM_RESOURCE) &&
1151 (!(r->flags & IORESOURCE_ROM_ENABLE)))
1152 continue;
1153 if (r->parent == NULL) {
1151 printk(KERN_ERR "PCI: Device %s not available because" 1154 printk(KERN_ERR "PCI: Device %s not available because"
1152 " of resource collisions\n", pci_name(dev)); 1155 " of resource collisions\n", pci_name(dev));
1153 return -EINVAL; 1156 return -EINVAL;