- Minor bugfixes

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1215 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Eric Biederman
2003-10-14 02:36:51 +00:00
parent fb3e1edc00
commit ad1b35a12b
5 changed files with 18 additions and 7 deletions

View File

@@ -14,6 +14,7 @@ static device_t ht_scan_get_devs(device_t *old_devices)
first = *old_devices;
last = first;
while(last && last->sibling &&
(last->sibling->path.type == DEVICE_PATH_PCI) &&
(last->sibling->path.u.pci.devfn > last->path.u.pci.devfn)) {
last = last->sibling;
}

View File

@@ -475,6 +475,10 @@ static struct device *pci_scan_get_dev(struct device **list, unsigned int devfn)
{
struct device *dev = 0;
for(; *list; list = &(*list)->sibling) {
if ((*list)->path.type != DEVICE_PATH_PCI) {
printk_err("child %s not a pci device\n", dev_path(*list));
continue;
}
if ((*list)->path.u.pci.devfn == devfn) {
/* Unlink from the list */
dev = *list;