Commit c64d0976 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by David Mosberger

[IA64] pci.c: assign parent to the ROM resource

Jon Smirl's patch to export roms via sysfs exposes a bug in the ia64
PCI code; we're not assigning a parent to the ROM resource. Patch
supplied by Matthew Wilcox
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent a1e055c6
......@@ -332,7 +332,7 @@ pcibios_fixup_device_resources (struct pci_dev *dev, struct pci_bus *bus)
struct pci_window *window;
int i, j;
int limit = (dev->hdr_type == PCI_HEADER_TYPE_NORMAL) ? \
PCI_ROM_RESOURCE : PCI_NUM_RESOURCES;
PCI_BRIDGE_RESOURCES : PCI_NUM_RESOURCES;
for (i = 0; i < limit; i++) {
if (!dev->resource[i].start)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment