diff options
Diffstat (limited to 'wct4xxp.c')
-rwxr-xr-x | wct4xxp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |