diff options
author | citats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-04-05 09:05:42 +0000 |
---|---|---|
committer | citats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-04-05 09:05:42 +0000 |
commit | 6a4fadda921778fb1fa3dcad1e6b8a46fbeb48cf (patch) | |
tree | 205d86263564ff679b3b9702460f7e08f8bd68a9 /wct4xxp.c | |
parent | d5c0530d0f69974d16cba24be7c88d16b18e13b2 (diff) |
Minor wct4xxp improvement. Don't call printk while we have reglock
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@342 5390a7c7-147a-4af0-8ec9-7488f05a26cb
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; } |