Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80085
b: refs/heads/master
c: 9f8dacc
h: refs/heads/master
i:
  80083: d9ddb19
v: v3
  • Loading branch information
Gary Hade authored and Ingo Molnar committed Jan 30, 2008
1 parent 6efa093 commit 1bb43f9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bca25bafbb390eeec376ac994954b99489d198ec
refs/heads/master: 9f8daccaa05c14e5643bdd4faf5aed9cc8e6f11e
17 changes: 17 additions & 0 deletions trunk/arch/x86/pci/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,32 @@ static void __devinit pcibios_fixup_ghosts(struct pci_bus *b)
}
}

static void __devinit pcibios_fixup_device_resources(struct pci_dev *dev)
{
struct resource *rom_r = &dev->resource[PCI_ROM_RESOURCE];

if (rom_r->parent)
return;
if (rom_r->start)
/* we deal with BIOS assigned ROM later */
return;
if (!(pci_probe & PCI_ASSIGN_ROMS))
rom_r->start = rom_r->end = rom_r->flags = 0;
}

/*
* Called after each bus is probed, but before its children
* are examined.
*/

void __devinit pcibios_fixup_bus(struct pci_bus *b)
{
struct pci_dev *dev;

pcibios_fixup_ghosts(b);
pci_read_bridge_bases(b);
list_for_each_entry(dev, &b->devices, bus_list)
pcibios_fixup_device_resources(dev);
}

/*
Expand Down

0 comments on commit 1bb43f9

Please sign in to comment.