2004-10-04 21:18:58

by Hanna Linder

[permalink] [raw]
Subject: [PATCH 2.6] hades-pci.c: replace pci_find_device with pci_get_device


As pci_find_device is going away I have replaced this call with pci_get_device.
If anyone has access to a Hades Atari clone to test this one I would appreciate it..

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <[email protected]>

---
diff -Nrup linux-2.6.9-rc3-mm2cln/arch/m68k/atari/hades-pci.c linux-2.6.9-rc3-mm2patch/arch/m68k/atari/hades-pci.c
--- linux-2.6.9-rc3-mm2cln/arch/m68k/atari/hades-pci.c 2004-09-29 20:04:57.000000000 -0700
+++ linux-2.6.9-rc3-mm2patch/arch/m68k/atari/hades-pci.c 2004-10-04 13:30:44.120362824 -0700
@@ -311,7 +311,7 @@ static void __init hades_fixup(int pci_m
* Go through all devices, fixing up irqs as we see fit:
*/

- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL)
+ while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL)
{
if (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE)
{



2004-10-05 19:35:00

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [PATCH 2.6] hades-pci.c: replace pci_find_device with pci_get_device

On Mon, 4 Oct 2004, Hanna Linder wrote:
> As pci_find_device is going away I have replaced this call with pci_get_device.
> If anyone has access to a Hades Atari clone to test this one I would appreciate it..

Applied, thanks!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds