diff options
author | Atul Sowani | 2010-11-03 14:10:56 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2010-11-10 00:17:18 +0100 |
commit | fc2347e2023221ef04c6d9ce84019aa8c7e0ad6d (patch) | |
tree | 61603df82355ab6f5f389ab7e4743126c4c914d6 | |
parent | Staging: trivial: fix typos concerning "controller" (diff) | |
download | kernel-qcow2-linux-fc2347e2023221ef04c6d9ce84019aa8c7e0ad6d.tar.gz kernel-qcow2-linux-fc2347e2023221ef04c6d9ce84019aa8c7e0ad6d.tar.xz kernel-qcow2-linux-fc2347e2023221ef04c6d9ce84019aa8c7e0ad6d.zip |
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: Atul Sowani <sowani@gmail.com>
Acked-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/xgifb/XGI_main_26.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c index 4f73d095c3ac..36ec45b84fca 100644 --- a/drivers/staging/xgifb/XGI_main_26.c +++ b/drivers/staging/xgifb/XGI_main_26.c @@ -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) { |