Skip to contentSkip to conversation

get rid of pci_find_{device,subsys} arch/sparc64

PATCH In review Amit Gud 1 participant 2 messages Mar 29, 2005 – Mar 30, 2005

lore
Share & tools
lore

Amit Gud

author
#0 lore raw

PATCH 5/91 get rid of pci_find_{device,subsys} arch/sparc64

Replace pci_find_{device,subsys} with pci_get_{device,subsys}.

---

arch/sparc64/kernel/ebus.c +3 -1
diff -upr orig-2.6.12-rc1/arch/sparc64/kernel/ebus.c work-2.6.12-rc1/arch/sparc64/kernel/ebus.c
@@ -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;
 }
 
author
#1 lore raw
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.