[PATCH] Staging: s626: only claim some subsystem ids
From: Erik Inge BolsÃ
Date: Tue Jun 16 2009 - 21:00:30 EST
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.
Signed-off-by: Erik Inge Bolsà <knan-lkml@xxxxxxxxxx>
---
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.
diff --git a/drivers/staging/comedi/drivers/s626.c b/drivers/staging/comedi/drivers/s626.c
index 30dec9d..5f1d373 100644
--- a/drivers/staging/comedi/drivers/s626.c
+++ b/drivers/staging/comedi/drivers/s626.c
@@ -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}
};
--
1.5.6.3
--
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/