Skip to contentSkip to conversation

drivers/isdn/hisax/gazel.c: fix warning

PATCH Superseded Michael Borisov 1 participant 1 message Jul 26, 2008 Kernel janitors

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 12/14 drivers/isdn/hisax/gazel.c: fix warning

This patch fixes the following compile warning:

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

---

drivers/isdn/hisax/gazel.c +1 -1
index 0ea3b46..16fe01c 100644
@@ -546,7 +546,7 @@ setup_gazelpci(struct IsdnCardState *cs)
 	found = 0;
 	seekcard = PCI_DEVICE_ID_PLX_R685;
 	for (nbseek = 0; nbseek < 4; nbseek++) {
-		if ((dev_tel = pci_find_device(PCI_VENDOR_ID_PLX,
+		if ((dev_tel = pci_get_device(PCI_VENDOR_ID_PLX,
 					seekcard, dev_tel))) {
 			if (pci_enable_device(dev_tel))
 				return 1;