diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2005-08-09 20:09:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-08 17:57:25 -0400 |
commit | c9d8073fd2a0bcb5df973654e988282b523cf553 (patch) | |
tree | 3d805afabce3f64466b4360839a3596befa95338 /drivers | |
parent | 11f3859b1e85dd408756c72e228cfb5aa7230c87 (diff) |
[PATCH] PCI: remove pci_find_device from parport_pc.c
This patch changes pci_find_device to pci_get_device (encapsulated in
for_each_pci_dev).
Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/parport/parport_pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c index 97f723179f62..1b938bb9be3c 100644 --- a/drivers/parport/parport_pc.c +++ b/drivers/parport/parport_pc.c | |||
@@ -3010,7 +3010,7 @@ static int __init parport_pc_init_superio (int autoirq, int autodma) | |||
3010 | struct pci_dev *pdev = NULL; | 3010 | struct pci_dev *pdev = NULL; |
3011 | int ret = 0; | 3011 | int ret = 0; |
3012 | 3012 | ||
3013 | while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) { | 3013 | for_each_pci_dev(pdev) { |
3014 | id = pci_match_id(parport_pc_pci_tbl, pdev); | 3014 | id = pci_match_id(parport_pc_pci_tbl, pdev); |
3015 | if (id == NULL || id->driver_data >= last_sio) | 3015 | if (id == NULL || id->driver_data >= last_sio) |
3016 | continue; | 3016 | continue; |