summaryrefslogtreecommitdiff
path: root/wct4xxp.c
diff options
context:
space:
mode:
Diffstat (limited to 'wct4xxp.c')
-rwxr-xr-xwct4xxp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wct4xxp.c b/wct4xxp.c
index 791935f..516519b 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -387,8 +387,8 @@ static int t4_rbsbits(struct zt_chan *chan, int bits)
struct t4 *wc = chan->pvt;
unsigned long flags;
- spin_lock_irqsave(&wc->reglock, flags);
if(debug) printk("Setting bits to %d on channel %s\n", bits, chan->name);
+ spin_lock_irqsave(&wc->reglock, flags);
k = chan->span->offset;
if (wc->spantype[k] == TYPE_E1) { /* do it E1 way */
if (chan->chanpos == 16) {
@@ -427,9 +427,9 @@ static int t4_rbsbits(struct zt_chan *chan, int bits)
/* output them to the chip */
__t4_framer_out(wc,k,0x70 + b,c);
}
+ spin_unlock_irqrestore(&wc->reglock, flags);
if (debug)
printk("Finished setting RBS bits\n");
- spin_unlock_irqrestore(&wc->reglock, flags);
return 0;
}