diff options
Diffstat (limited to 'arch/mips/pci/pci.c')
-rw-r--r-- | arch/mips/pci/pci.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c index 9a11c2226891..38bc28005b4a 100644 --- a/arch/mips/pci/pci.c +++ b/arch/mips/pci/pci.c | |||
@@ -49,8 +49,8 @@ static int pci_initialized; | |||
49 | * but we want to try to avoid allocating at 0x2900-0x2bff | 49 | * but we want to try to avoid allocating at 0x2900-0x2bff |
50 | * which might have be mirrored at 0x0100-0x03ff.. | 50 | * which might have be mirrored at 0x0100-0x03ff.. |
51 | */ | 51 | */ |
52 | void | 52 | resource_size_t |
53 | pcibios_align_resource(void *data, struct resource *res, | 53 | pcibios_align_resource(void *data, const struct resource *res, |
54 | resource_size_t size, resource_size_t align) | 54 | resource_size_t size, resource_size_t align) |
55 | { | 55 | { |
56 | struct pci_dev *dev = data; | 56 | struct pci_dev *dev = data; |
@@ -73,7 +73,7 @@ pcibios_align_resource(void *data, struct resource *res, | |||
73 | start = PCIBIOS_MIN_MEM + hose->mem_resource->start; | 73 | start = PCIBIOS_MIN_MEM + hose->mem_resource->start; |
74 | } | 74 | } |
75 | 75 | ||
76 | res->start = start; | 76 | return start; |
77 | } | 77 | } |
78 | 78 | ||
79 | static void __devinit pcibios_scanbus(struct pci_controller *hose) | 79 | static void __devinit pcibios_scanbus(struct pci_controller *hose) |
@@ -251,8 +251,6 @@ static void pcibios_fixup_device_resources(struct pci_dev *dev, | |||
251 | for (i = 0; i < PCI_NUM_RESOURCES; i++) { | 251 | for (i = 0; i < PCI_NUM_RESOURCES; i++) { |
252 | if (!dev->resource[i].start) | 252 | if (!dev->resource[i].start) |
253 | continue; | 253 | continue; |
254 | if (dev->resource[i].flags & IORESOURCE_PCI_FIXED) | ||
255 | continue; | ||
256 | if (dev->resource[i].flags & IORESOURCE_IO) | 254 | if (dev->resource[i].flags & IORESOURCE_IO) |
257 | offset = hose->io_offset; | 255 | offset = hose->io_offset; |
258 | else if (dev->resource[i].flags & IORESOURCE_MEM) | 256 | else if (dev->resource[i].flags & IORESOURCE_MEM) |