All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/14] drivers/isdn/hisax/telespci.c: fix warning
@ 2008-07-26 19:44 Michael Borisov
  2008-07-27  0:44 ` David Miller
  2008-07-27  3:12 ` Matthew Wilcox
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Borisov @ 2008-07-26 19:44 UTC (permalink / raw)
  To: kernel-janitors

This patch fixes the following compile warning:

drivers/isdn/hisax/telespci.c: In function ‘setup_telespci’:
drivers/isdn/hisax/telespci.c:303: warning: ‘pci_find_device’ is
deprecated (declared at include/linux/pci.h:535)

Signed-off-by: Michael Borisov <niro@tut.by>
---
diff --git a/drivers/isdn/hisax/telespci.c
b/drivers/isdn/hisax/telespci.c
index 28b08de..9ed0862 100644
--- a/drivers/isdn/hisax/telespci.c
+++ b/drivers/isdn/hisax/telespci.c
@@ -300,7 +300,8 @@ setup_telespci(struct IsdnCard *card)
        if (cs->typ != ISDN_CTYPE_TELESPCI)
                return (0);
 
-       if ((dev_tel = pci_find_device (PCI_VENDOR_ID_ZORAN,
PCI_DEVICE_ID_ZORAN_36120, dev_tel))) {
+       if ((dev_tel = pci_get_device(PCI_VENDOR_ID_ZORAN,
+               PCI_DEVICE_ID_ZORAN_36120, dev_tel))) {
                if (pci_enable_device(dev_tel))
                        return(0);
                cs->irq = dev_tel->irq;




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

end of thread, other threads:[~2008-07-27  3:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-26 19:44 [PATCH 1/14] drivers/isdn/hisax/telespci.c: fix warning Michael Borisov
2008-07-27  0:44 ` David Miller
2008-07-27  3:12 ` 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.