Skip to contentSkip to conversation

Staging: s626: only claim some subsystem ids

PATCH New Erik Inge Bolsø 1 participant 1 message Jun 17, 2009 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: s626: only claim some subsystem ids

Fix comedi s626 driver mistakenly binding to SAA7146 dvb cards, match only the same subsystem ids the vendor reference driver s626 v1.0.1 does.

---
 drivers/staging/comedi/drivers/s626.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Looks obvious enough, but totally untested patch. Vendor driver consulted found from http://www.sensoray.com/products/626data.htm ... this driver looks to have been forked from it years ago, according to the source comments.

drivers/staging/comedi/drivers/s626.c +3 -1
index 30dec9d..5f1d373 100644
@@ -111,7 +111,9 @@ static const struct s626_board s626_boards[] = {
 #define PCI_DEVICE_ID_S626 0x7146
 
 static DEFINE_PCI_DEVICE_TABLE(s626_pci_table) = {
-	{PCI_VENDOR_ID_S626, PCI_DEVICE_ID_S626, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
+	{PCI_VENDOR_ID_S626, PCI_DEVICE_ID_S626, 0x6000, 0x0626, 0, 0,
+		0},
+	{PCI_VENDOR_ID_S626, PCI_DEVICE_ID_S626, 0x6000, 0x0272, 0, 0,
 		0},
 	{0}
 };
Signature · 1 line
1.5.6.3