ChangeSet 1.1254.4.22, 2003/06/04 12:31:35-07:00, greg@kroah.com [PATCH] PCI: remove usage of pci_for_each_dev() in drivers/char/watchdog/amd7xx_tco.c drivers/char/watchdog/amd7xx_tco.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -Nru a/drivers/char/watchdog/amd7xx_tco.c b/drivers/char/watchdog/amd7xx_tco.c --- a/drivers/char/watchdog/amd7xx_tco.c Wed Jun 4 18:10:36 2003 +++ b/drivers/char/watchdog/amd7xx_tco.c Wed Jun 4 18:10:36 2003 @@ -309,7 +309,8 @@ sema_init(&open_sem, 1); spin_lock_init(&amdtco_lock); - pci_for_each_dev(dev) { + dev = NULL; + while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { if (pci_match_device (amdtco_pci_tbl, dev) != NULL) goto found_one; }