[PATCH]: 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.

Signed-off-by: Alan Cox <alan@xxxxxxxxxx>

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
--- linux.vanilla-2.6.20-rc6-mm3/drivers/mtd/maps/ck804xrom.c 2007-01-31 14:19:55.000000000 +0000
+++ linux-2.6.20-rc6-mm3/drivers/mtd/maps/ck804xrom.c 2007-01-31 15:17:52.000000000 +0000
@@ -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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Desperately want GDIINFO, how can I obtain this structure?
    ... PDEV is a chunk of memory which the driver allocates in the ... Brian,Didn't you author a book on display drivers, Is it possible to get ... > There is a kernel debugger extension DLL for display drivers called ...
    (microsoft.public.development.device.drivers)
  • Re: Desperately want GDIINFO, how can I obtain this structure?
    ... PDEV is a chunk of memory which the driver allocates in the ... Brian,Didn't you author a book on display drivers, Is it possible to get ... > There is a kernel debugger extension DLL for display drivers called ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Desperately want GDIINFO, how can I obtain this structure?
    ... PDEV is a chunk of memory which the driver allocates in the ... Brian,Didn't you author a book on display drivers, Is it possible to get ... > There is a kernel debugger extension DLL for display drivers called ...
    (microsoft.public.windowsxp.device_driver.dev)
  • Re: Desperately want GDIINFO, how can I obtain this structure?
    ... PDEV is a chunk of memory which the driver allocates in the ... Brian,Didn't you author a book on display drivers, Is it possible to get ... > There is a kernel debugger extension DLL for display drivers called ...
    (microsoft.public.win32.programmer.gdi)