]> git.hungrycats.org Git - linux/commitdiff
[PATCH] PCI: Fix one missed pci_find_device
authorHanna V. Linder <hannal@us.ibm.com>
Wed, 6 Oct 2004 05:56:27 +0000 (22:56 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 6 Oct 2004 05:56:27 +0000 (22:56 -0700)
Just noticed this in my update to the latest mm kernel...

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
arch/i386/kernel/cpu/cyrix.c

index 2e2b4276438d44fe72da28fb119daf307ff51cff..7c0c0d296cd49e3e0fd9c762b390c62067f0b3bd 100644 (file)
@@ -280,7 +280,7 @@ static void __init init_cyrix(struct cpuinfo_x86 *c)
                        pci_dev_put(dev);
                        pit_latch_buggy = 1;
                }
-               dev =  pci_find_device(PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5520, NULL);
+               dev =  pci_get_device(PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5520, NULL);
                if (dev) {
                        pci_dev_put(dev);
                        pit_latch_buggy = 1;