Skip to content

Commit

Permalink
replace pci_find_device in drivers/telephony/ixj.c
Browse files Browse the repository at this point in the history
Cleaning up of pci_find_device in drivers/telephony/ixj.c.

Signed-off-by: Surya Prabhakar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Surya authored and Linus Torvalds committed May 8, 2007
1 parent d954e8e commit 6de2d20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/telephony/ixj.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit 6de2d20

Please sign in to comment.