2004-10-08 00:02:50

by Hanna Linder

[permalink] [raw]
Subject: [PATCH 2.6][12/12] sandpoint.c replace pci_find_device with pci_get_device


As pci_find_device is going away I've replaced it with pci_get_device.
If someone with a PPC system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <[email protected]>

---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc/platforms/sandpoint.c linux-2.6.9-rc3-mm3patch3/arch/ppc/platforms/sandpoint.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc/platforms/sandpoint.c 2004-09-29 20:06:04.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch3/arch/ppc/platforms/sandpoint.c 2004-10-07 16:36:52.946102904 -0700
@@ -531,7 +531,7 @@ static unsigned long sandpoint_idedma_re
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) {
@@ -540,6 +540,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;