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

Greg KH greg at kroah.com
Mon Feb 14 13:45:25 EST 2005


On Mon, Feb 14, 2005 at 11:29:21AM +0530, Amit Gud wrote:
> 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;
> 

No, incorrect replacement, please do not apply.

greg k-h



More information about the Linux-parport mailing list