]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] ck804xrom: fix a pci_find_device
authorAlan <alan@lxorguk.ukuu.org.uk>
Wed, 31 Jan 2007 17:00:28 +0000 (17:00 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 31 Jan 2007 17:26:02 +0000 (17:26 +0000)
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>
drivers/mtd/maps/ck804xrom.c

index 238d42e88ec52eeb050276480d9dcc1e7759a003..68ed02ecb2ec7d9faafd236f419faeaf6a9a27c3 100644 (file)
@@ -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;
        }