Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6de2d202 authored by Surya's avatar Surya Committed by Linus Torvalds
Browse files

replace pci_find_device in drivers/telephony/ixj.c



Cleaning up of pci_find_device in drivers/telephony/ixj.c.

Signed-off-by: default avatarSurya Prabhakar <surya.prabhakar@wipro.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d954e8ed
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
}