diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-08 21:41:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-08 22:02:55 -0400 |
commit | 8d539108560ec121d59eee05160236488266221c (patch) | |
tree | 744f9d154d863f8aaaa0a62fa1ec76768a2ca8c3 | |
parent | c4f51b4662074c6ee26c972126a317c05f65be06 (diff) |
Revert "PCI: remove default PCI expansion ROM memory allocation"
This reverts commit 9f8daccaa05c14e5643bdd4faf5aed9cc8e6f11e, which was
reported to break X startup (xf86-video-ati-6.8.0). See
http://bugs.freedesktop.org/show_bug.cgi?id=15523
for details.
Reported-by: Laurence Withers <l@lwithers.me.uk>
Cc: Gary Hade <garyhade@us.ibm.com>
Cc: Greg KH <greg@kroah.com>
Cc: Jan Beulich <jbeulich@novell.com>
Cc: "Jun'ichi Nomura" <j-nomura@ce.jp.nec.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/x86/pci/common.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index bfa72a9475b3..8545c8a9d107 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c | |||
@@ -77,19 +77,6 @@ int pcibios_scanned; | |||
77 | */ | 77 | */ |
78 | DEFINE_SPINLOCK(pci_config_lock); | 78 | DEFINE_SPINLOCK(pci_config_lock); |
79 | 79 | ||
80 | static void __devinit pcibios_fixup_device_resources(struct pci_dev *dev) | ||
81 | { | ||
82 | struct resource *rom_r = &dev->resource[PCI_ROM_RESOURCE]; | ||
83 | |||
84 | if (rom_r->parent) | ||
85 | return; | ||
86 | if (rom_r->start) | ||
87 | /* we deal with BIOS assigned ROM later */ | ||
88 | return; | ||
89 | if (!(pci_probe & PCI_ASSIGN_ROMS)) | ||
90 | rom_r->start = rom_r->end = rom_r->flags = 0; | ||
91 | } | ||
92 | |||
93 | static int __devinit can_skip_ioresource_align(const struct dmi_system_id *d) | 80 | static int __devinit can_skip_ioresource_align(const struct dmi_system_id *d) |
94 | { | 81 | { |
95 | pci_probe |= PCI_CAN_SKIP_ISA_ALIGN; | 82 | pci_probe |= PCI_CAN_SKIP_ISA_ALIGN; |
@@ -141,11 +128,7 @@ void __init dmi_check_skip_isa_align(void) | |||
141 | 128 | ||
142 | void __devinit pcibios_fixup_bus(struct pci_bus *b) | 129 | void __devinit pcibios_fixup_bus(struct pci_bus *b) |
143 | { | 130 | { |
144 | struct pci_dev *dev; | ||
145 | |||
146 | pci_read_bridge_bases(b); | 131 | pci_read_bridge_bases(b); |
147 | list_for_each_entry(dev, &b->devices, bus_list) | ||
148 | pcibios_fixup_device_resources(dev); | ||
149 | } | 132 | } |
150 | 133 | ||
151 | /* | 134 | /* |