PCI: Mask out the strict flag when checking if the added card is not on-board, fixes bridge adding.
This commit is contained in:
@@ -885,7 +885,7 @@ pci_register_cards(void)
|
|||||||
type = pci_card_descs[i].type;
|
type = pci_card_descs[i].type;
|
||||||
slot = pci_card_descs[i].slot;
|
slot = pci_card_descs[i].slot;
|
||||||
#endif
|
#endif
|
||||||
normal = (pci_card_descs[i].type == PCI_CARD_NORMAL);
|
normal = ((pci_card_descs[i].type & ~PCI_ADD_STRICT) == PCI_CARD_NORMAL);
|
||||||
|
|
||||||
/* If this is a normal card, increase the next normal card index. */
|
/* If this is a normal card, increase the next normal card index. */
|
||||||
if (normal)
|
if (normal)
|
||||||
|
|||||||
Reference in New Issue
Block a user