diff options
| author | Dave Jones <davej@redhat.com> | 2004-12-15 03:39:28 -0500 |
|---|---|---|
| committer | Dave Jones <davej@redhat.com> | 2004-12-15 03:39:28 -0500 |
| commit | b2309665620665aba71f71204bf1683d1aae200e (patch) | |
| tree | ab9a62e99f1f3bed60d0c2f59015aedef7d81e26 | |
| parent | f3370caa4cc410614c3e53f61836b95f1a2f00db (diff) | |
[AGPGART] isoch.c: replace pci_find_device with pci_get_device
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.
Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Dave Jones <davej@redhat.com>
| -rw-r--r-- | drivers/char/agp/isoch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/agp/isoch.c b/drivers/char/agp/isoch.c index 97e179ab366a..c9ac731504f2 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. */ - 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; |
