[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4CD15F60.8090305@gmail.com>
Date: Wed, 03 Nov 2010 18:40:56 +0530
From: Atul Sowani <sowani@...il.com>
To: arnaud.patard@...-net.org
CC: linux-kernel@...r.kernel.org, gregkh@...e.de
Subject: [PATCH 2.6.36 1/1] 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@...il.com>
---
--- a/drivers/staging/xgifb/XGI_main_26.c 2010-10-21 02:00:22.000000000 +0530
+++ b/drivers/staging/xgifb/XGI_main_26.c 2010-11-03 18:35:18.000000000 +0530
@@ -483,9 +483,11 @@ XGIfb_query_VGA_config_space(struct xgi_
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) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists