summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wctdm.c4
-rw-r--r--wctdm24xxp.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/wctdm.c b/wctdm.c
index 01ca964..c4b184f 100644
--- a/wctdm.c
+++ b/wctdm.c
@@ -1189,10 +1189,10 @@ static int wctdm_proslic_insane(struct wctdm *wc, int card)
printk("ProSLIC 3210 version %d is too old\n", blah & 0xf);
return -1;
}
- if ((blah & 0xf) == 2) {
+ if (wctdm_getreg(wc, card, 1) & 0x80)
/* ProSLIC 3215, not a 3210 */
wc->flags[card] |= FLAG_3215;
- }
+
blah = wctdm_getreg(wc, card, 8);
if (blah != 0x2) {
printk("ProSLIC on module %d insane (1) %d should be 2\n", card, blah);
diff --git a/wctdm24xxp.c b/wctdm24xxp.c
index 3cc4767..6606feb 100644
--- a/wctdm24xxp.c
+++ b/wctdm24xxp.c
@@ -1629,10 +1629,10 @@ static int wctdm_proslic_insane(struct wctdm *wc, int card)
printk("ProSLIC 3210 version %d is too old\n", blah & 0xf);
return -1;
}
- if ((blah & 0xf) == 2) {
+ if (wctdm_getreg(wc, card, 1) & 0x80)
/* ProSLIC 3215, not a 3210 */
wc->flags[card] |= FLAG_3215;
- }
+
blah = wctdm_getreg(wc, card, 8);
if (blah != 0x2) {
printk("ProSLIC on module %d insane (1) %d should be 2\n", card, blah);