LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device
@ 2008-02-12 14:31 Sergio Luis
  2008-02-12 16:22 ` James Bottomley
  0 siblings, 1 reply; 10+ messages in thread
From: Sergio Luis @ 2008-02-12 14:31 UTC (permalink / raw)
  To: Achim Leubner; +Cc: linux-scsi, LKML

Fix compilation warning in drivers/scsi/gdth.c, using deprecated pci_find_device. 
Change it into using pci_get_device instead:
drivers/scsi/gdth.c:645: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:495)

Signed-off-by: Sergio Luis <sergio@larces.uece.br>

gdth.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


diff -urN linux-2.6.25-rc1-git2.orig/drivers/scsi/gdth.c linux-2.6.25-rc1-git2/drivers/scsi/gdth.c
--- linux-2.6.25-rc1-git2.orig/drivers/scsi/gdth.c	2008-02-12 09:26:14.000000000 -0300
+++ linux-2.6.25-rc1-git2/drivers/scsi/gdth.c	2008-02-12 10:33:08.000000000 -0300
@@ -642,7 +642,7 @@
           *cnt, vendor, device));
 
     pdev = NULL;
-    while ((pdev = pci_find_device(vendor, device, pdev)) 
+    while ((pdev = pci_get_device(vendor, device, pdev)) 
            != NULL) {
         if (pci_enable_device(pdev))
             continue;


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

end of thread, other threads:[~2008-03-04 12:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-12 14:31 [PATCH] 2.6.25-rc1-git2: GDT SCSI: change drivers/scsi/gdth.c into using pci_get device Sergio Luis
2008-02-12 16:22 ` James Bottomley
2008-02-12 16:54   ` Boaz Harrosh
     [not found]     ` <47B23033.1080100@larces.uece.br>
2008-02-13  0:17       ` James Bottomley
2008-02-13  8:57         ` Boaz Harrosh
2008-02-16 16:37           ` Matthew Wilcox
2008-02-17 10:37             ` Boaz Harrosh
2008-02-17 16:42               ` Jeff Garzik
2008-03-04  7:48               ` Hannes Reinecke
2008-03-04 12:04                 ` Boaz Harrosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).