mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6] pSeries_pci.c replace pci_find_device with pci_get_device
@ 2004-10-08 17:39 Hanna Linder
  2004-10-08 18:13 ` character device interface to existing socket interface shankar krishnamurthy
  0 siblings, 1 reply; 3+ messages in thread
From: Hanna Linder @ 2004-10-08 17:39 UTC (permalink / raw)
  To: lkml, kernel-janitors; +Cc: paulus, anton, greg, hannal

As pci_find_device is going away I've replaced it with pci_get_device.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_pci.c linux-2.6.9-rc3-mm3patch3/arch/ppc64/kernel/pSeries_pci.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_pci.c	2004-10-07 15:54:30.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch3/arch/ppc64/kernel/pSeries_pci.c	2004-10-08 10:24:00.064501400 -0700
@@ -646,7 +646,7 @@ void __init pSeries_final_fixup(void)
 
 	check_s7a();
 
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+	for_each_pci_dev(dev) {
 		pci_read_irq_line(dev);
 		if (s7a_workaround) {
 			if (dev->irq > 16) {


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

end of thread, other threads:[~2004-10-08 19:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-08 17:39 [PATCH 2.6] pSeries_pci.c replace pci_find_device with pci_get_device Hanna Linder
2004-10-08 18:13 ` character device interface to existing socket interface shankar krishnamurthy
2004-10-08 19:17   ` Neil Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome