提交 fc2347e2 编写于 作者: A Atul Sowani 提交者: 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: NAtul Sowani <sowani@gmail.com>
Acked-by: NArnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册