Commit 5b0b7250 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in drivers/parport/parport_pc.c

parent 8c1f9856
......@@ -2979,10 +2979,10 @@ static struct pci_driver parport_pc_pci_driver = {
static int __init parport_pc_init_superio (int autoirq, int autodma)
{
const struct pci_device_id *id;
struct pci_dev *pdev;
struct pci_dev *pdev = NULL;
int ret = 0;
pci_for_each_dev(pdev) {
while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) {
id = pci_match_device (parport_pc_pci_tbl, pdev);
if (id == NULL || id->driver_data >= last_sio)
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