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

Commit 881a8c12 authored by Amit Gud's avatar Amit Gud Committed by Greg Kroah-Hartman
Browse files

[PATCH] pci: remove deprecates



Replace pci_find_device() with more safer pci_get_device().

Signed-off-by: default avatarAmit Gud <gud@eth.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 120bb424
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -451,7 +451,7 @@ static int __init moxa_init(void)
		int n = (sizeof(moxa_pcibrds) / sizeof(moxa_pcibrds[0])) - 1;
		i = 0;
		while (i < n) {
			while ((p = pci_find_device(moxa_pcibrds[i].vendor, moxa_pcibrds[i].device, p))!=NULL)
			while ((p = pci_get_device(moxa_pcibrds[i].vendor, moxa_pcibrds[i].device, p))!=NULL)
			{
				if (pci_enable_device(p))
					continue;