ChangeSet 1.1254.4.31, 2003/06/04 12:33:05-07:00, greg@kroah.com [PATCH] PCI: remove usage of pci_for_each_dev() in drivers/net/e100/e100_main.c drivers/net/e100/e100_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/drivers/net/e100/e100_main.c b/drivers/net/e100/e100_main.c --- a/drivers/net/e100/e100_main.c Wed Jun 4 18:09:50 2003 +++ b/drivers/net/e100/e100_main.c Wed Jun 4 18:09:50 2003 @@ -4271,13 +4271,13 @@ static int e100_notify_reboot(struct notifier_block *nb, unsigned long event, void *p) { - struct pci_dev *pdev; + struct pci_dev *pdev = NULL; switch(event) { case SYS_DOWN: case SYS_HALT: case SYS_POWER_OFF: - pci_for_each_dev(pdev) { + while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) { if(pci_dev_driver(pdev) == &e100_driver) { /* If net_device struct is allocated? */ if (pci_get_drvdata(pdev))