Skip to contentSkip to conversation

drivers/isdn/hisax/hfc_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 8/14 drivers/isdn/hisax/hfc_pci.c: fix warning

This patch fixes the following compile warning:

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

---

drivers/isdn/hisax/hfc_pci.c +1 -1
index f126566..64b9dc8 100644
@@ -1658,7 +1658,7 @@ setup_hfcpci(struct IsdnCard *card)
 
 	i = 0;
 	while (id_list[i].vendor_id) {
-		tmp_hfcpci = pci_find_device(id_list[i].vendor_id,
+		tmp_hfcpci = pci_get_device(id_list[i].vendor_id,
 					     id_list[i].device_id,
 					     dev_hfcpci);
 		i++;