From 94e7d7a511057acb648d88f5988b943eb583d2d0 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 11 Dec 2007 19:49:24 +0000 Subject: [PATCH] [MIPS] PCI: Make pcibios_fixup_device_resources ignore legacy resources. 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 --- arch/mips/pci/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c index 589b745d822a3..6e6981fd79346 100644 --- a/arch/mips/pci/pci.c +++ b/arch/mips/pci/pci.c @@ -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) -- 2.39.5