All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5/91] get rid of pci_find_{device,subsys} arch/sparc64
@ 2005-03-29 12:39 Amit Gud
  2005-03-30 10:31 ` Amit Gud
  0 siblings, 1 reply; 2+ messages in thread
From: Amit Gud @ 2005-03-29 12:39 UTC (permalink / raw)
  To: sparclinux

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



Signed-off-by: Amit Gud <gud@eth.net>

---
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;
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-30 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-29 12:39 [PATCH 5/91] get rid of pci_find_{device,subsys} arch/sparc64 Amit Gud
2005-03-30 10:31 ` Amit Gud

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.