summaryrefslogtreecommitdiff
path: root/wct4xxp.c
diff options
context:
space:
mode:
authorcitats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-05 09:05:42 +0000
committercitats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-05 09:05:42 +0000
commit6a4fadda921778fb1fa3dcad1e6b8a46fbeb48cf (patch)
tree205d86263564ff679b3b9702460f7e08f8bd68a9 /wct4xxp.c
parentd5c0530d0f69974d16cba24be7c88d16b18e13b2 (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-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;
}