[PATCH 2.6] [3/12] k2.c replace pci_find_device with pci_get_device

From: Hanna Linder
Date: Wed Oct 06 2004 - 18:56:25 EST



As pci_find_device is going away I have replaced this call with pci_get_device.
If someone with a PPC system could verify it I would appreciate it.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@xxxxxxxxxx>

----
diff -Nrup linux-2.6.9-rc3-mm2cln/arch/ppc/platforms/k2.c linux-2.6.9-rc3-mm2patch/arch/ppc/platforms/k2.c
--- linux-2.6.9-rc3-mm2cln/arch/ppc/platforms/k2.c 2004-09-29 20:03:45.000000000 -0700
+++ linux-2.6.9-rc3-mm2patch/arch/ppc/platforms/k2.c 2004-10-06 16:33:25.278918216 -0700
@@ -116,7 +116,7 @@ void k2_pcibios_fixup(void)
/*
* Enable DMA support on hdc
*/
- ide_dev = pci_find_device(PCI_VENDOR_ID_AL,
+ ide_dev = pci_get_device(PCI_VENDOR_ID_AL,
PCI_DEVICE_ID_AL_M5229, NULL);

if (ide_dev) {
@@ -126,6 +126,7 @@ void k2_pcibios_fixup(void)
ide_dma_base = pci_resource_start(ide_dev, 4);
outb(0x00, ide_dma_base + 0x2);
outb(0x20, ide_dma_base + 0xa);
+ pci_dev_put(ide_dev);
}
#endif
}



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/