[PATCH 2.6.9-rc2-mm4 matroxfb_base.c][7/8] Replace pci_find_device with pci_dev_present

From: Hanna Linder
Date: Wed Sep 29 2004 - 18:50:24 EST



As pci_find_device is going away it is being replace with pci_dev_present (since the
dev is not used). I have compiled tested this.

Hanna Linder
IBM Linux Technology Center

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

---

diff -Nrup linux-2.6.9-rc2-mm4cln/drivers/video/matrox/matroxfb_base.c linux-2.6.9-rc2-mm4patch/drivers/video/matrox/matroxfb_base.c
--- linux-2.6.9-rc2-mm4cln/drivers/video/matrox/matroxfb_base.c 2004-09-28 14:59:07.000000000 -0700
+++ linux-2.6.9-rc2-mm4patch/drivers/video/matrox/matroxfb_base.c 2004-09-29 16:18:33.000000000 -0700
@@ -1578,6 +1578,11 @@ static int initMatrox2(WPMINFO struct bo
unsigned int memsize;
int err;

+ static struct pci_device_id intel_82437[] = {
+ { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82437) },
+ { },
+ };
+
DBG(__FUNCTION__)

/* set default values... */
@@ -1682,7 +1687,7 @@ static int initMatrox2(WPMINFO struct bo
mga_option |= MX_OPTION_BSWAP;
/* disable palette snooping */
cmd &= ~PCI_COMMAND_VGA_PALETTE;
- if (pci_find_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82437, NULL)) {
+ if (pci_dev_present(intel_82437)) {
if (!(mga_option & 0x20000000) && !ACCESS_FBINFO(devflags.nopciretry)) {
printk(KERN_WARNING "matroxfb: Disabling PCI retries due to i82437 present\n");
}



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