Skip to contentSkip to conversation

MODULE_DEVICE_TABLE for Specialix SX serial card driver

PATCH New Andrey Panin 1 participant 1 message Oct 19, 2001 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MODULE_DEVICE_TABLE for Specialix SX serial card driver

Apply and enjoy :)

Signature · 2 lines
Andrey Panin            | Embedded systems software engineer
[email protected]        | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc
drivers/char/sx.c +5 -0
diff -urN -X /usr/dontdiff linux.vanilla/drivers/char/sx.c linux/drivers/char/sx.c
@@ -257,6 +257,11 @@
 #define PCI_DEVICE_ID_SPECIALIX_SX_XIO_IO8 0x2000
 #endif
 
+static struct pci_device_id sx_pci_tbl[] = {
+	{ PCI_VENDOR_ID_SPECIALIX, PCI_DEVICE_ID_SPECIALIX_SX_XIO_IO8, PCI_ANY_ID, PCI_ANY_ID },
+	{ 0 }
+};
+MODULE_DEVICE_TABLE(pci, sx_pci_tbl);
 
 /* Configurable options: 
    (Don't be too sure that it'll work if you toggle them) */