diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-03-19 04:44:03 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-03-19 04:44:03 +0000 |
commit | 304c2d8ffdf25203392d5f934f8fedc3ec1759da (patch) | |
tree | cf369f4f25d1d4f8fbd5ccb451bffbec357e7bcf | |
parent | 5704d6f9a25a86b04569f943be1469e11aceb0f8 (diff) |
Fix typo in T4 driver, and wake up on ping
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@327 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | wct4xxp.c | 4 | ||||
-rwxr-xr-x | zaptel.c | 1 |
2 files changed, 3 insertions, 2 deletions
@@ -649,7 +649,7 @@ static void t4_set_timing_source(struct t4 *wc, int unit) static void t4_set_timing_source_auto(struct t4 *wc) { - int qual, x; + int x; for (x=0;x<4;x++) { if (wc->syncs[x]) { if ((wc->spans[wc->syncs[x] - 1].flags & ZT_FLAG_RUNNING) && @@ -660,7 +660,7 @@ static void t4_set_timing_source_auto(struct t4 *wc) } } } - t4_set_timing_souce(wc, 4); + t4_set_timing_source(wc, 4); } static void __t4_configure_t1(struct t4 *wc, int unit, int lineconfig, int txlevel) @@ -2566,6 +2566,7 @@ static int zt_timer_ioctl(struct inode *node, struct file *file, unsigned int cm case ZT_TIMERPING: spin_lock_irqsave(&zaptimerlock, flags); timer->ping = 1; + wake_up_interruptible(&timer->sel); spin_unlock_irqrestore(&zaptimerlock, flags); break; case ZT_TIMERPONG: |