get rid of pci_find_{device,subsys} arch/sparc64
PATCH 5/91 get rid of pci_find_{device,subsys} arch/sparc64
Replace pci_find_{device,subsys} with pci_get_{device,subsys}.
Signed-off-by Amit Gud <[email protected]>
---
arch/sparc64/kernel/ebus.c +3 -1
@@ -528,11 +528,12 @@ 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 ))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(stelse *is_rio_p =0 ; +pci_dev_put (pdev);return pdev; }
Quoted 2 lines · Amit Gud
replace pci_find_{device,subsys} with pci_get_{device,subsys}
Please don't apply, its incorrect.
Sorry for the inconvenience.
Best,
AG
--
May the source be with you.