From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756281AbZLWQXl (ORCPT ); Wed, 23 Dec 2009 11:23:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753767AbZLWQXl (ORCPT ); Wed, 23 Dec 2009 11:23:41 -0500 Received: from cantor2.suse.de ([195.135.220.15]:51001 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753058AbZLWQXk (ORCPT ); Wed, 23 Dec 2009 11:23:40 -0500 Date: Wed, 23 Dec 2009 08:19:32 -0800 From: Greg KH To: Simon Horman Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [patch 1/7] [patch] DT3155: Use pci_get_device Message-ID: <20091223161932.GB26520@suse.de> References: <20091223085448.619253793@vergenet.net> <20091223085551.921624544@vergenet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091223085551.921624544@vergenet.net> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 23, 2009 at 07:54:49PM +1100, Simon Horman wrote: > The use of pci_find_device() is deprecated. > > Signed-off-by: Simon Horman > > --- > > Compile tested only. > > Alternatively, if pci_find_device() really needs to be used > then this code needs to depend on PCI_LEGACY. > > Index: gregkh-2.6/drivers/staging/dt3155/dt3155_drv.c > =================================================================== > --- gregkh-2.6.orig/drivers/staging/dt3155/dt3155_drv.c 2009-12-23 18:41:46.000000000 +1100 > +++ gregkh-2.6/drivers/staging/dt3155/dt3155_drv.c 2009-12-23 18:42:29.000000000 +1100 > @@ -963,7 +963,7 @@ static int find_PCI (void) > unsigned long base; > unsigned char irq; > > - while ((pci_dev = pci_find_device > + while ((pci_dev = pci_get_device You can't just replace these two functions, they operate differently with regard to the reference counting logic. Otherwise it wouldn't make sense to have 2 different functions :) So I can't apply this. thanks, greg k-h