ChangeSet 1.1278, 2003/06/04 17:39:00-07:00, greg@kroah.com [PATCH] PCI: remove usage of pci_for_each_dev() in arch/ia64/sn/io/pciba.c arch/ia64/sn/io/pciba.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff -Nru a/arch/ia64/sn/io/pciba.c b/arch/ia64/sn/io/pciba.c --- a/arch/ia64/sn/io/pciba.c Wed Jun 4 18:08:15 2003 +++ b/arch/ia64/sn/io/pciba.c Wed Jun 4 18:08:15 2003 @@ -286,7 +286,7 @@ static status __init register_with_devfs(void) { - struct pci_dev * dev; + struct pci_dev * dev = NULL; devfs_handle_t device_dir_handle; char devfs_path[40]; @@ -297,7 +297,7 @@ /* FIXME: don't forget /dev/pci/mem & /dev/pci/io */ - pci_for_each_dev(dev) { + while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { sprintf(devfs_path, "pci/%02x/%02x.%x", dev->bus->number, PCI_SLOT(dev->devfn), @@ -325,14 +325,14 @@ static status __init register_with_devfs(void) { - struct pci_dev * dev; + struct pci_dev * dev = NULL; devfs_handle_t device_dir_handle; TRACE(); /* FIXME: don't forget /dev/.../pci/mem & /dev/.../pci/io */ - pci_for_each_dev(dev) { + while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { device_dir_handle = devfn_to_vertex(dev->bus->number, dev->devfn); if (device_dir_handle == NULL)