Skip to contentSkip to conversation

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

PATCH In review Atul Sowani 2 participants 2 messages Nov 3, 2010 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---

drivers/staging/xgifb/XGI_main_26.c +4 -2
@@ -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) {