diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-12-01 16:59:20 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-12-01 16:59:20 +0000 |
commit | 55f6cb916cf69bc33d1a0f2dec2389acd12b422c (patch) | |
tree | d0e16a72d0d8084bf2adfed71b5b8621c5986fce /drivers/dahdi/wctdm24xxp/xhfc.c | |
parent | a00124d56f8764ea6ccc6469bc512a0cb85a5229 (diff) |
wctdm24xxp: Replace interruptible_sleep_on() with msleep when delaying.
There were several cases where interruptible_sleep_on() was being used
as a ms timer, since the assumption is that the board will interrupt at
even 1ms intervals. We can replace these cases with msleep directly to
clarify that we're just waiting.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9501 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm24xxp/xhfc.c')
-rw-r--r-- | drivers/dahdi/wctdm24xxp/xhfc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/dahdi/wctdm24xxp/xhfc.c b/drivers/dahdi/wctdm24xxp/xhfc.c index b65245f..afa4b4d 100644 --- a/drivers/dahdi/wctdm24xxp/xhfc.c +++ b/drivers/dahdi/wctdm24xxp/xhfc.c @@ -2627,7 +2627,7 @@ void b400m_post_init(struct b400m *b4) /* functions called from the wctdm code */ int wctdm_init_b400m(struct wctdm *wc, int card) { - int i, ret = 0; + int ret = 0; unsigned long flags; if (wc->modtype[card & 0xfc] == MOD_TYPE_QRV) @@ -2641,8 +2641,7 @@ int wctdm_init_b400m(struct wctdm *wc, int card) wc->modtype[card + 3] = MOD_TYPE_BRI; spin_unlock_irqrestore(&wc->reglock, flags); - for (i = 0; i < 10; i++) - interruptible_sleep_on(&wc->regq); + msleep(20); if (b400m_probe(wc, card) != 0) { spin_lock_irqsave(&wc->reglock, flags); |