summaryrefslogtreecommitdiff
path: root/torisa.c
diff options
context:
space:
mode:
Diffstat (limited to 'torisa.c')
-rwxr-xr-xtorisa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/torisa.c b/torisa.c
index b7c67a8..0b41fed 100755
--- a/torisa.c
+++ b/torisa.c
@@ -128,7 +128,7 @@ static int prefmaster = 0;
static int spansstarted = 0;
-static rwlock_t torisa;
+static rwlock_t torisa = RW_LOCK_UNLOCKED;
static u_char readdata[2][64][ZT_MAX_CHUNKSIZE];
static u_char writedata[2][64][ZT_MAX_CHUNKSIZE];
@@ -806,7 +806,7 @@ static void torisa_intr(int irq, void *dev_id, struct pt_regs *regs)
}
}
- i = passno & 511;
+ i = passno & 127;
/* if an E1 card, do rx signalling for it */
if (i < 3 && (card_type == TYPE_E1)) { /* if an E1 card */
for(j = (i * 3); j < (i * 3) + 5; j++)