[Linux-parport] [PATCH 10/18] remove pci_find_{device, subsys}

Amit Gud amitg at calsoftinc.com
Mon Feb 14 00:59:21 EST 2005


Remove deprecated pci_find_device and pci_find_subsys


AG
--
May the source be with you


Signed-off-by: Amit Gud <gud at eth.net>

diff -uprN orig/drivers/parport/parport_pc.c linux-2.6.11-rc3/drivers/parport/parport_pc.c
--- orig/drivers/parport/parport_pc.c	2005-02-11 15:19:51.000000000 +0530
+++ linux-2.6.11-rc3/drivers/parport/parport_pc.c	2005-02-14 02:27:04.000000000 +0530
@@ -2966,7 +2966,7 @@ static int __init parport_pc_init_superi
 	struct pci_dev *pdev = NULL;
 	int ret = 0;
 
-	while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) {
+	while ((pdev = pci_get_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;




More information about the Linux-parport mailing list