Replace pci_find_{device,subsys} with pci_get_{device,subsys}.
Signed-off-by: Amit Gud <[EMAIL PROTECTED]>
---
diff -upr orig-2.6.12-rc1/arch/sparc64/kernel/ebus.c
work-2.6.12-rc1/arch/sparc64/kernel/ebus.c
--- orig-2.6.12-rc1/arch/sparc64/kernel/ebus.c 2005-03-15 21:00:22.000000000
+0530
+++ work-2.6.12-rc1/arch/sparc64/kernel/ebus.c 2005-03-29 17:55:40.281121064
+0530
@@ -528,11 +528,12 @@ static struct pci_dev *find_next_ebus(st
struct pci_dev *pdev = start;
do {
- pdev = pci_find_device(PCI_VENDOR_ID_SUN, PCI_ANY_ID, pdev);
+ pdev = pci_get_device(PCI_VENDOR_ID_SUN, PCI_ANY_ID, pdev);
if (pdev &&
(pdev->device == PCI_DEVICE_ID_SUN_EBUS ||
pdev->device == PCI_DEVICE_ID_SUN_RIO_EBUS))
break;
+ pci_dev_put(pdev);
} while (pdev != NULL);
if (pdev && (pdev->device == PCI_DEVICE_ID_SUN_RIO_EBUS))
@@ -540,6 +541,7 @@ static struct pci_dev *find_next_ebus(st
else
*is_rio_p = 0;
+ pci_dev_put(pdev);
return pdev;
}
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html