diff options
Diffstat (limited to 'arch/mips/pmc-sierra/yosemite/ht.c')
-rw-r--r-- | arch/mips/pmc-sierra/yosemite/ht.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/arch/mips/pmc-sierra/yosemite/ht.c b/arch/mips/pmc-sierra/yosemite/ht.c index 6380662bbf3c..678388fd34b1 100644 --- a/arch/mips/pmc-sierra/yosemite/ht.c +++ b/arch/mips/pmc-sierra/yosemite/ht.c | |||
@@ -345,42 +345,6 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) | |||
345 | return pcibios_enable_resources(dev); | 345 | return pcibios_enable_resources(dev); |
346 | } | 346 | } |
347 | 347 | ||
348 | |||
349 | |||
350 | void pcibios_update_resource(struct pci_dev *dev, struct resource *root, | ||
351 | struct resource *res, int resource) | ||
352 | { | ||
353 | u32 new, check; | ||
354 | int reg; | ||
355 | |||
356 | return; | ||
357 | |||
358 | new = res->start | (res->flags & PCI_REGION_FLAG_MASK); | ||
359 | if (resource < 6) { | ||
360 | reg = PCI_BASE_ADDRESS_0 + 4 * resource; | ||
361 | } else if (resource == PCI_ROM_RESOURCE) { | ||
362 | res->flags |= IORESOURCE_ROM_ENABLE; | ||
363 | reg = dev->rom_base_reg; | ||
364 | } else { | ||
365 | /* | ||
366 | * Somebody might have asked allocation of a non-standard | ||
367 | * resource | ||
368 | */ | ||
369 | return; | ||
370 | } | ||
371 | |||
372 | pci_write_config_dword(dev, reg, new); | ||
373 | pci_read_config_dword(dev, reg, &check); | ||
374 | if ((new ^ check) & | ||
375 | ((new & PCI_BASE_ADDRESS_SPACE_IO) ? PCI_BASE_ADDRESS_IO_MASK : | ||
376 | PCI_BASE_ADDRESS_MEM_MASK)) { | ||
377 | printk(KERN_ERR "PCI: Error while updating region " | ||
378 | "%s/%d (%08x != %08x)\n", pci_name(dev), resource, | ||
379 | new, check); | ||
380 | } | ||
381 | } | ||
382 | |||
383 | |||
384 | void pcibios_align_resource(void *data, struct resource *res, | 348 | void pcibios_align_resource(void *data, struct resource *res, |
385 | resource_size_t size, resource_size_t align) | 349 | resource_size_t size, resource_size_t align) |
386 | { | 350 | { |