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

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
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment