All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] change pci_find_device to pci_get_device,
@ 2007-07-16  7:02 Denis Cheng
  2007-07-16  7:06 ` rae l
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Denis Cheng @ 2007-07-16  7:02 UTC (permalink / raw)
  To: kernel-janitors

this eliminates compiler warning:

drivers/scsi/advansys.c: In function ‘advansys_detect’:
drivers/scsi/advansys.c:4456: warning: ‘pci_find_device’ is deprecated (declared at include/linux/pci.h:478)

Signed-off-by: Denis Cheng <crquan@gmail.com>
---
 drivers/scsi/advansys.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index 2b66897..8e5abd1 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -4453,7 +4453,7 @@ advansys_detect(struct scsi_host_template *tpnt)
 
                     /* Find all PCI cards. */
                     while (pci_device_id_cnt < ASC_PCI_DEVICE_ID_CNT) {
-                        if ((pci_devp = pci_find_device(PCI_VENDOR_ID_ASP,
+                        if ((pci_devp = pci_get_device(PCI_VENDOR_ID_ASP,
                             pci_device_id[pci_device_id_cnt], pci_devp)) ==
                             NULL) {
                             pci_device_id_cnt++;
-- 
1.5.2.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-17  1:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-16  7:02 [PATCH] change pci_find_device to pci_get_device, Denis Cheng
2007-07-16  7:06 ` rae l
2007-07-16 11:14 ` Matthew Wilcox
2007-07-16 14:53 ` rae l
2007-07-16 15:03 ` Matthew Wilcox
2007-07-17  0:09 ` Greg KH
2007-07-17  1:30 ` Matthew Wilcox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.