As pci_find_device is going away I've replaced it with pci_get_device and pci_dev_put.
If someone with a Dreamcast system could test it I would appreciate it.
Thanks.
Hanna Linder
IBM Linux Technology Center
Signed-off-by: Hanna Linder <[email protected]>
---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/sh/drivers/pci/fixups-dreamcast.c linux-2.6.9-rc3-mm3patch/arch/sh/drivers/pci/fixups-dreamcast.c
--- linux-2.6.9-rc3-mm3cln/arch/sh/drivers/pci/fixups-dreamcast.c 2004-09-29 20:05:41.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch/arch/sh/drivers/pci/fixups-dreamcast.c 2004-10-08 13:34:31.097720208 -0700
@@ -62,7 +62,7 @@ void __init pcibios_fixup_irqs(void)
{
struct pci_dev *dev = 0;
- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+ for_each_pci_dev(dev) {
/*
* The interrupt routing semantics here are quite trivial.
*