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

Commit fc2347e2 authored by Atul Sowani's avatar Atul Sowani Committed by Greg Kroah-Hartman
Browse files

Staging: xgifb: change obsolete pci_find_device() with pci_get_device()



Replaced obsolete pci_find_device() calls with pci_get_device() calls.
This is recommended in pci.txt filei in PCI Documentation.

Signed-off-by: default avatarAtul Sowani <sowani@gmail.com>
Acked-by: default avatarArnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent af02b584
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -472,9 +472,11 @@ unsigned char XGIfb_query_north_bridge_space(struct xgi_hw_device_info *pXGIhw_e
			break;
		}

		pdev = pci_find_device(PCI_VENDOR_ID_SI, nbridge_id, pdev);
		if (pdev)
		pdev = pci_get_device(PCI_VENDOR_ID_SI, nbridge_id, pdev);
		if (pdev) {
			valid_pdev = 1;
			pci_dev_put(pdev);
		}
	}

	if (!valid_pdev) {