X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fx86%2Fpci%2Flegacy.c;h=e041ced0ce138714a93147f9cc5015e0f7f51d3e;hb=0eccf60bfa9190d1588b2bf07d23d7b9b3a19d9e;hp=5565d7016b754d340c4f82aceec44f781b964d63;hpb=6f35308c3ffa256bed183adf6f2c0c6c211ca487;p=linux-2.6 diff --git a/arch/x86/pci/legacy.c b/arch/x86/pci/legacy.c index 5565d7016b..e041ced0ce 100644 --- a/arch/x86/pci/legacy.c +++ b/arch/x86/pci/legacy.c @@ -22,7 +22,7 @@ static void __devinit pcibios_fixup_peer_bridges(void) if (pci_find_bus(0, n)) continue; for (devfn = 0; devfn < 256; devfn += 8) { - if (!raw_pci_ops->read(0, n, devfn, PCI_VENDOR_ID, 2, &l) && + if (!raw_pci_read(0, n, devfn, PCI_VENDOR_ID, 2, &l) && l != 0x0000 && l != 0xffff) { DBG("Found device at %02x:%02x [%04x]\n", n, devfn, l); printk(KERN_INFO "PCI: Discovered peer bus %02x\n", n);