Skip to content

Commit

Permalink
[MTD] ck804xrom: fix a pci_find_device
Browse files Browse the repository at this point in the history
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@redhat.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Alan authored and David Woodhouse committed Jan 31, 2007
1 parent f7c37d7 commit c033a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/maps/ck804xrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static int __init init_ck804xrom(void)
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;
}
Expand Down

0 comments on commit c033a7e

Please sign in to comment.