All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/14 v2] drivers/isdn/hisax/telespci.c: fix warning
@ 2008-07-27  7:51 Michael Borisov
  2008-07-27  8:15 ` Julia Lawall
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Michael Borisov @ 2008-07-27  7:51 UTC (permalink / raw)
  To: kernel-janitors

Probably now it is correct ? 
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..1142f35 100644
--- a/drivers/isdn/hisax/telespci.c
+++ b/drivers/isdn/hisax/telespci.c
@@ -300,7 +300,9 @@ 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))) {
+	dev_tel = pci_get_device (PCI_VENDOR_ID_ZORAN,
PCI_DEVICE_ID_ZORAN_36120, NULL);
+	if (dev_tel) {
+		pci_dev_put(dev_tel);
 		if (pci_enable_device(dev_tel))
 			return(0);
 		cs->irq = dev_tel->irq;


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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-27  7:51 [PATCH 1/14 v2] drivers/isdn/hisax/telespci.c: fix warning Michael Borisov
2008-07-27  8:15 ` Julia Lawall
2008-07-27  9:56 ` Michael Borisov
2008-07-27 10:13 ` Julia Lawall
2008-07-27 16:00 ` Julia Lawall
2008-07-27 16:37 ` Michael Borisov

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.