if (been_there[where]++)
break;
pci_add_cap(d, where, id, PCI_CAP_EXTENDED);
- where = header >> 20;
+ where = (header >> 20) & ~3;
}
while (where);
}
{
struct pci_cap *c;
- pci_fill_info_v31(d, ((type == PCI_CAP_NORMAL) ? PCI_FILL_CAPS : PCI_FILL_EXT_CAPS));
+ pci_fill_info_v35(d, ((type == PCI_CAP_NORMAL) ? PCI_FILL_CAPS : PCI_FILL_EXT_CAPS));
for (c=d->first_cap; c; c=c->next)
if (c->type == type && c->id == id)
return c;