X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fagp%2Fisoch.c;h=97e179ab366a32d807ca588481d1e1592ab898ef;hb=9e1bf581d67d87a1d7fc0ea500729e3a03643a26;hp=c9ac731504f229a11f18f588f23e1f8dc1d0df27;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/drivers/char/agp/isoch.c b/drivers/char/agp/isoch.c index c9ac73150..97e179ab3 100644 --- a/drivers/char/agp/isoch.c +++ b/drivers/char/agp/isoch.c @@ -347,7 +347,7 @@ int agp_3_5_enable(struct agp_bridge_data *bridge) INIT_LIST_HEAD(head); /* Find all AGP devices, and add them to dev_list. */ - for_each_pci_dev(dev) { + while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { mcapndx = pci_find_capability(dev, PCI_CAP_ID_AGP); if (mcapndx == 0) continue;