[RFT 2.6] isoch.c: replace pci_find_device with pci_get_device

From: Hanna Linder
Date: Thu Oct 21 2004 - 04:22:23 EST



As pci_find_device is going away soon I have converted this file to use
pci_get_device instead. for_each_pci_dev is just a macro wrapper around
pci_get_device. I have compile tested it. If anyone has this hardware
and could test it that would be great.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@xxxxxxxxxx>
---
diff -Nrup linux-2.6.9cln/drivers/char/agp/isoch.c linux-2.6.9patch/drivers/char/agp/isoch.c
--- linux-2.6.9cln/drivers/char/agp/isoch.c 2004-10-18 16:35:52.000000000 -0700
+++ linux-2.6.9patch/drivers/char/agp/isoch.c 2004-10-19 16:02:16.634192424 -0700
@@ -347,7 +347,7 @@ int agp_3_5_enable(struct agp_bridge_dat
INIT_LIST_HEAD(head);

/* Find all AGP devices, and add them to dev_list. */
- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+ for_each_pci_dev(dev) {
mcapndx = pci_find_capability(dev, PCI_CAP_ID_AGP);
if (mcapndx == 0)
continue;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/