]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] PCI: Make pcibios_fixup_device_resources ignore legacy resources.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 11 Dec 2007 19:49:24 +0000 (19:49 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 14 Dec 2007 17:34:29 +0000 (17:34 +0000)
There might be other reasons why a resource might be marked as fixed
such as a PCI UART holding the system console but until we use
IORESOURCE_PCI_FIXED that way also this will work.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci.c

index 589b745d822a31b47cc2c98b96e6a75bb29dfc19..6e6981fd79346f0979c9aaa66f1a15997861a7ee 100644 (file)
@@ -242,6 +242,8 @@ static void pcibios_fixup_device_resources(struct pci_dev *dev,
        for (i = 0; i < PCI_NUM_RESOURCES; i++) {
                if (!dev->resource[i].start)
                        continue;
+               if (dev->resource[i].flags & IORESOURCE_PCI_FIXED)
+                       continue;
                if (dev->resource[i].flags & IORESOURCE_IO)
                        offset = hose->io_offset;
                else if (dev->resource[i].flags & IORESOURCE_MEM)