Commit ea3ce0bc authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in drivers/char/agp/isoch.c

parent 18621e87
...@@ -316,7 +316,7 @@ static void agp_3_5_nonisochronous_node_enable(struct agp_bridge_data *bridge, ...@@ -316,7 +316,7 @@ static void agp_3_5_nonisochronous_node_enable(struct agp_bridge_data *bridge,
*/ */
int agp_3_5_enable(struct agp_bridge_data *bridge) int agp_3_5_enable(struct agp_bridge_data *bridge)
{ {
struct pci_dev *td = bridge->dev, *dev; struct pci_dev *td = bridge->dev, *dev = NULL;
u8 mcapndx; u8 mcapndx;
u32 isoch, arqsz; u32 isoch, arqsz;
u32 tstatus, mstatus, ncapid; u32 tstatus, mstatus, ncapid;
...@@ -347,7 +347,7 @@ int agp_3_5_enable(struct agp_bridge_data *bridge) ...@@ -347,7 +347,7 @@ int agp_3_5_enable(struct agp_bridge_data *bridge)
INIT_LIST_HEAD(head); INIT_LIST_HEAD(head);
/* Find all AGP devices, and add them to dev_list. */ /* Find all AGP devices, and add them to dev_list. */
pci_for_each_dev(dev) { while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
mcapndx = pci_find_capability(dev, PCI_CAP_ID_AGP); mcapndx = pci_find_capability(dev, PCI_CAP_ID_AGP);
if (mcapndx == 0) if (mcapndx == 0)
continue; 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