Skip to contentSkip to conversation

: mtd - fix a pci_find_device

PATCH Applied Alan 2 participants 2 messages Jan 31, 2007 Memory technology devices (MTD)

lore
Share & tools
lore

Alan

author
#0 lore raw

PATCH 1/1 : mtd - fix a pci_find_device

Going over the bugs and warnings I found this one left over. The other changes have already been correctly done for this driver but the actual switch to pci_get_device that they assume has not.

drivers/mtd/maps/ck804xrom.c +1 -1
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.20-rc6-mm3/drivers/mtd/maps/ck804xrom.c linux-2.6.20-rc6-mm3/drivers/mtd/maps/ck804xrom.c
@@ -327,7 +327,7 @@
 	pdev = NULL;
 
 	for(id = ck804xrom_pci_tbl; id->vendor; id++) {
-		pdev = pci_find_device(id->vendor, id->device, NULL);
+		pdev = pci_get_device(id->vendor, id->device, NULL);
 		if (pdev)
 			break;
 	}
#1 lore raw
Quoted 5 lines · Alan

Going over the bugs and warnings I found this one left over. The other changes have already been correctly done for this driver but the actual switch to pci_get_device that they assume has not.

Applied; thanks.

Signature · 1 line
dwmw2