Commit 24c0d224 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in drivers/char/watchdog/i810-tco.c

parent 58159ba8
...@@ -315,14 +315,14 @@ static struct pci_dev *i810tco_pci; ...@@ -315,14 +315,14 @@ static struct pci_dev *i810tco_pci;
static unsigned char __init i810tco_getdevice (void) static unsigned char __init i810tco_getdevice (void)
{ {
struct pci_dev *dev; struct pci_dev *dev = NULL;
u8 val1, val2; u8 val1, val2;
u16 badr; u16 badr;
/* /*
* Find the PCI device * Find the PCI device
*/ */
pci_for_each_dev(dev) { while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
if (pci_match_device(i810tco_pci_tbl, dev)) { if (pci_match_device(i810tco_pci_tbl, dev)) {
i810tco_pci = dev; i810tco_pci = dev;
break; break;
......
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