Re: compiling mga_vid for 2.6.11-mm1
Attila Kinali <[email protected]> Thu, 10 Mar 2005 08:35:58 +0100
| Newsgroups | gmane.comp.video.mplayer.user.matrox |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 09 Mar 2005 16:43:55 -0600 "Berck E. Nash" <[email protected]> wrote: > Hi, I'm running 2.6.11-mm1 and can't seem to get it to compile. I > realize this is not a standard Kernel... [..] > I'm sure the problem is with mm1, so I altered the Makefile to force it > to use the 2.6.11 kernel sources. It then compiled fine, but the > resulting module refuses to install... pci_dev->slot_name was obsolted. please use the attached patch. Attila Kinali -- 郷に入れば郷に従え _______________________________________________ MPlayer-matrox mailing list [email protected] http://mplayerhq.hu/mailman/listinfo/mplayer-matrox
mga_vid-2.6.11+.patch
(text/plain, 1.7 KB)
Index: mga_vid.c
===================================================================
--- mga_vid.c (revision 89)
+++ mga_vid.c (revision 93)
@@ -834,27 +834,27 @@
switch(dev->device) {
case PCI_DEVICE_ID_MATROX_G550:
mga_dev_name = "MGA G550";
- printk(KERN_INFO "mga_vid: Found %s at %s [%s]\n", mga_dev_name, dev->slot_name, pci_name(dev));
+ printk(KERN_INFO "mga_vid: Found %s at %s\n", mga_dev_name, pci_name(dev));
cards_init(card, dev, mga_cards_num - 1, 1);
break;
case PCI_DEVICE_ID_MATROX_G400:
mga_dev_name = "MGA G400/G450";
- printk(KERN_INFO "mga_vid: Found %s at %s [%s]\n", mga_dev_name, dev->slot_name, pci_name(dev));
+ printk(KERN_INFO "mga_vid: Found %s at %s\n", mga_dev_name, pci_name(dev));
cards_init(card, dev, mga_cards_num - 1, 1);
break;
case PCI_DEVICE_ID_MATROX_G200_AGP:
mga_dev_name = "MGA G200 AGP";
- printk(KERN_INFO "mga_vid: Found %s at %s [%s]\n", mga_dev_name, dev->slot_name, pci_name(dev));
+ printk(KERN_INFO "mga_vid: Found %s at %s\n", mga_dev_name, pci_name(dev));
cards_init(card, dev, mga_cards_num - 1, 0);
break;
case PCI_DEVICE_ID_MATROX_G200_PCI:
mga_dev_name = "MGA G200";
- printk(KERN_INFO "mga_vid: Found %s at %s [%s]\n", mga_dev_name, dev->slot_name, pci_name(dev));
+ printk(KERN_INFO "mga_vid: Found %s at %s\n", mga_dev_name, pci_name(dev));
cards_init(card, dev, mga_cards_num - 1, 0);
break;
default:
mga_cards_num--;
- printk(KERN_INFO "mga_vid: ignoring unsupported matrox device (%d) at %s [%s]\n", dev->device, dev->slot_name, pci_name(dev));
+ printk(KERN_INFO "mga_vid: ignoring unsupported matrox device (%d) at %s\n", dev->device, pci_name(dev));
break;
}
}