From: Surya Date: Tue, 8 May 2007 07:25:57 +0000 (-0700) Subject: replace pci_find_device in drivers/telephony/ixj.c X-Git-Tag: v2.6.22-rc1~752 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6de2d20235a2b8c751d39ec4b68347d66b19d815;p=linux-2.6 replace pci_find_device in drivers/telephony/ixj.c Cleaning up of pci_find_device in drivers/telephony/ixj.c. Signed-off-by: Surya Prabhakar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/telephony/ixj.c b/drivers/telephony/ixj.c index 71cb64e41a..c7b0a357b0 100644 --- a/drivers/telephony/ixj.c +++ b/drivers/telephony/ixj.c @@ -7692,7 +7692,7 @@ static int __init ixj_probe_pci(int *cnt) IXJ *j = NULL; for (i = 0; i < IXJMAX - *cnt; i++) { - pci = pci_find_device(PCI_VENDOR_ID_QUICKNET, + pci = pci_get_device(PCI_VENDOR_ID_QUICKNET, PCI_DEVICE_ID_QUICKNET_XJ, pci); if (!pci) break; @@ -7712,6 +7712,7 @@ static int __init ixj_probe_pci(int *cnt) printk(KERN_INFO "ixj: found Internet PhoneJACK PCI at 0x%x\n", j->DSPbase); ++*cnt; } + pci_dev_put(pci); return probe; }