Re: [PATCH] PCI fixes for 2.6.10-rc1

From: Greg KH
Date: Fri Nov 12 2004 - 20:29:44 EST


ChangeSet 1.2091.1.7, 2004/11/12 14:03:20-08:00, hannal@xxxxxxxxxx

[PATCH] matroxfb_base.c: convert pci_find_device to pci_get_device

As pci_find_device is going away I've replaced it with pci_get_device.

Signed-off-by: Hanna Linder <hannal@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


drivers/video/matrox/matroxfb_base.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)


diff -Nru a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c
--- a/drivers/video/matrox/matroxfb_base.c 2004-11-12 15:11:12 -08:00
+++ b/drivers/video/matrox/matroxfb_base.c 2004-11-12 15:11:12 -08:00
@@ -1580,6 +1580,11 @@
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... */
@@ -1684,7 +1689,7 @@
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/