Messages in this thread Patch in this message | | | Date | Tue, 19 Oct 1999 05:48:53 -0400 | From | Jeff Garzik <> | Subject | PATCH 2.3.23 pre2 PCI probe helper fix |
| |
Linus and Martin,
The attached patch against 2.3.23 pre2 fixes the case where pci_simple_probe() is passed the wildcard PCI_ANY_ID.
In some cases, the callback is executed multiple times for a single board, which is not the correct behavior.
Regards,
JeffIndex: helper.c =================================================================== RCS file: /g/cvslan/linux_2_3/drivers/pci/Attic/helper.c,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.12.1 diff -u -r1.1.1.1 -r1.1.1.1.12.1 --- helper.c 1999/10/08 05:05:58 1.1.1.1 +++ helper.c 1999/10/13 10:07:21 1.1.1.1.12.1 @@ -57,7 +57,7 @@ if (match_limit && match_limit == matches) return matches; - ent++; + break; /* stop list search on first match */ } dev = pci_find_device (PCI_ANY_ID, PCI_ANY_ID, dev); | |