Skip to contentSkip to conversation

drivers/isdn/hisax/avm_pci.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 2/14 drivers/isdn/hisax/avm_pci.c: fix warning

This patch fixes the following compile warning:

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

---

drivers/isdn/hisax/avm_pci.c +1 -1
index 7cabc5a..21e4d32 100644
@@ -835,7 +835,7 @@ static struct pci_dev *dev_avm __devinitdata = NULL;
 
 static int __devinit avm_pci_setup(struct IsdnCardState *cs)
 {
-	if ((dev_avm = pci_find_device(PCI_VENDOR_ID_AVM,
+	if ((dev_avm = pci_get_device(PCI_VENDOR_ID_AVM,
 		PCI_DEVICE_ID_AVM_A1, dev_avm))) {
 
 		if (pci_enable_device(dev_avm))