ebus.c replace pci_find_device with pci_get_device
PATCH 1/2 ebus.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 Sparc64 system could test it I would appreciate it. Thanks.
Hanna Linder
IBM Linux Technology Center
Signed-off-by Hanna Linder <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
---
Signed-off-by Domen Puncer <[email protected]>
---
kj-domen/arch/sparc64/kernel/ebus.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
arch/sparc64/kernel/ebus.c renamed from arch/sparc64/kernel/ebus.c~remove-pci-find-device-arch_sparc64_kernel_ebus +1 -1
@@ -528,7 +528,7 @@ static struct pci_dev *find_next_ebus(ststruct 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))
_
Quoted 3 lines · On Mon, 10 Jan 2005 18:48:51 +0100 [email protected] wrote:
As
pci_find_deviceis going away I've replaced it withpci_get_device. If someone with a Sparc64 system could test it I would appreciate it. Thanks.
You need to add the appropriate pci_dev_put() calls if you make this change since pci_get_device() obtains a reference count to the device object.