[PATCH 2.6][7/12] pcore.c replace pci_find_device with pci_get_device

From: Hanna Linder
Date: Thu Oct 07 2004 - 20:31:22 EST



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

Thanks.

Hanna Linder
IBM Linux Technology Center

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

---

diff -Nrup linux-2.6.9-rc3-mm2cln/arch/ppc/platforms/pcore.c linux-2.6.9-rc3-mm2patch2/arch/ppc/platforms/pcore.c
--- linux-2.6.9-rc3-mm2cln/arch/ppc/platforms/pcore.c 2004-09-29 20:03:45.000000000 -0700
+++ linux-2.6.9-rc3-mm2patch2/arch/ppc/platforms/pcore.c 2004-10-07 15:30:31.839323128 -0700
@@ -89,7 +89,7 @@ pcore_pcibios_fixup(void)
{
struct pci_dev *dev;

- if ((dev = pci_find_device(PCI_VENDOR_ID_WINBOND,
+ if ((dev = pci_get_device(PCI_VENDOR_ID_WINBOND,
PCI_DEVICE_ID_WINBOND_83C553,
0)))
{
@@ -108,6 +108,7 @@ pcore_pcibios_fixup(void)
*/
outb(0x00, PCORE_WINBOND_PRI_EDG_LVL);
outb(0x1e, PCORE_WINBOND_SEC_EDG_LVL);
+ pci_dev_put(dev);
}
}


-
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/