Commit b2309665 authored by Dave Jones's avatar Dave Jones

[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: default avatarHanna Linder <hannal@us.ibm.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent f3370caa
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment