]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] sandpoint.c: replace pci_find_device with pci_get_device
authorHanna V. Linder <hannal@us.ibm.com>
Fri, 12 Nov 2004 06:10:24 +0000 (22:10 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 12 Nov 2004 06:10:24 +0000 (22:10 -0800)
As pci_find_device is going away I've replaced it with pci_get_device.

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
arch/ppc/platforms/sandpoint.c

index cef887eeed381bf7805be75741d811e1ceb2d36f..b00210ccbe865e7cfaf6532d13af821b47911618 100644 (file)
@@ -575,7 +575,7 @@ static unsigned long        sandpoint_idedma_regbase;
 static void
 sandpoint_ide_probe(void)
 {
-       struct pci_dev *pdev = pci_find_device(PCI_VENDOR_ID_WINBOND,
+       struct pci_dev *pdev = pci_get_device(PCI_VENDOR_ID_WINBOND,
                        PCI_DEVICE_ID_WINBOND_82C105, NULL);
 
        if (pdev) {
@@ -584,6 +584,7 @@ sandpoint_ide_probe(void)
                sandpoint_ide_ctl_regbase[0]=pdev->resource[1].start;
                sandpoint_ide_ctl_regbase[1]=pdev->resource[3].start;
                sandpoint_idedma_regbase=pdev->resource[4].start;
+               pci_dev_put(dev);
        }
 
        sandpoint_ide_ports_known = 1;