* [RFT 2.6] ret_mb_a_pci.c replace pci_find_device with pci_get_device
@ 2004-10-08 22:53 Hanna Linder
0 siblings, 0 replies; only message in thread
From: Hanna Linder @ 2004-10-08 22:53 UTC (permalink / raw)
To: lkml, kernel-janitors; +Cc: greg, hannal, uclinux-v850
As pci_find_device is going away I've replaced it with pci_get_device.
If someone with a v850 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/v850/kernel/rte_mb_a_pci.c linux-2.6.9-rc3-mm3patch/arch/v850/kernel/rte_mb_a_pci.c
--- linux-2.6.9-rc3-mm3cln/arch/v850/kernel/rte_mb_a_pci.c 2004-09-29 20:04:23.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch/arch/v850/kernel/rte_mb_a_pci.c 2004-10-08 15:39:44.793464832 -0700
@@ -254,7 +254,7 @@ static void __devinit pcibios_assign_res
struct pci_dev *dev = NULL;
struct resource *r;
- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+ for_each_pci_dev(dev) {
unsigned di_num;
unsigned class = dev->class >> 8;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-08 22:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-08 22:53 [RFT 2.6] ret_mb_a_pci.c replace pci_find_device with pci_get_device Hanna Linder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®