mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-15 02:07:40 +07:00
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 <surya.prabhakar@wipro.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d954e8edee
commit
6de2d20235
@ -7692,7 +7692,7 @@ static int __init ixj_probe_pci(int *cnt)
|
|||||||
IXJ *j = NULL;
|
IXJ *j = NULL;
|
||||||
|
|
||||||
for (i = 0; i < IXJMAX - *cnt; i++) {
|
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);
|
PCI_DEVICE_ID_QUICKNET_XJ, pci);
|
||||||
if (!pci)
|
if (!pci)
|
||||||
break;
|
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);
|
printk(KERN_INFO "ixj: found Internet PhoneJACK PCI at 0x%x\n", j->DSPbase);
|
||||||
++*cnt;
|
++*cnt;
|
||||||
}
|
}
|
||||||
|
pci_dev_put(pci);
|
||||||
return probe;
|
return probe;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user