Skip to contentSkip to conversation

MODULE_DEVICE_TABLE for zoran framegrabber drivers

PATCH New Andrey Panin 1 participant 1 message Oct 25, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MODULE_DEVICE_TABLE for zoran framegrabber drivers

Two MODULE_DEVICE_TABLE patches attached.
Please consider applying.

Signature · 2 lines
Andrey Panin            | Embedded systems software engineer
[email protected]        | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc
linux/drivers/media/video/zr36067.c renamed from linux.vanilla/drivers/media/video/zr36067.c +7 -0
diff -u -X /usr/dontdiff /linux.vanilla/drivers/media/video/zr36067.c /linux/drivers/media/video/zr36067.c
@@ -245,6 +245,13 @@
 MODULE_PARM(lml33dpath, "i");
 MODULE_PARM(video_nr, "i");
 
+static struct pci_device_id zr36067_pci_tbl[] = {
+	{ PCI_VENDOR_ID_ZORAN, PCI_DEVICE_ID_ZORAN_36057, 
+	  PCI_ANY_ID, PCI_ANY_ID,  0, 0, 0 },
+	{ 0 }
+};
+MODULE_DEVICE_TABLE(pci, zr36067_pci_tbl);
+
 /* Anybody who uses more than four? */
 #define BUZ_MAX 4
 
linux/drivers/media/video/zr36120.c renamed from linux.vanilla/drivers/media/video/zr36120.c +7 -0
diff -u -X /usr/dontdiff /linux.vanilla/drivers/media/video/zr36120.c /linux/drivers/media/video/zr36120.c
@@ -60,6 +60,13 @@
 static int video_nr = -1;
 static int vbi_nr = -1;
 
+static struct pci_device_id zr36120_pci_tbl[] = {
+	{ PCI_VENDOR_ID_ZORAN,PCI_DEVICE_ID_ZORAN_36120,
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+	{ 0 }
+};
+MODULE_DEVICE_TABLE(pci, zr36120_pci_tbl);
+
 MODULE_AUTHOR("Pauline Middelink <[email protected]>");
 MODULE_DESCRIPTION("Zoran ZR36120 based framegrabber");
 MODULE_LICENSE("GPL");