From 38c3cda8e2db6c7c4d5bd0c03484cafabc9ec0fe Mon Sep 17 00:00:00 2001 From: Oron Peled Date: Wed, 26 Oct 2011 18:57:31 +0000 Subject: [PATCH] dahdi: dahdi_is_analog_span() -> dahdi_is_digital_span() * dahdi-base.c had a reverse is_analog_span() static function -- fixed. Signed-off-by: Oron Peled Acked-by: Shaun Ruffell git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10272 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 37463a9..80eea41 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -3711,11 +3711,6 @@ void dahdi_alarm_channel(struct dahdi_chan *chan, int alarms) spin_unlock_irqrestore(&chan->lock, flags); } -static inline bool is_analog_span(const struct dahdi_span *s) -{ - return (s->linecompat == 0); -} - static void __dahdi_find_master_span(void) { struct dahdi_span *s; @@ -3727,7 +3722,7 @@ static void __dahdi_find_master_span(void) list_for_each_entry(s, &span_list, node) { if (s->alarms) continue; - if (!is_analog_span(s) && + if (dahdi_is_digital_span(s) && !test_bit(DAHDI_FLAGBIT_RUNNING, &s->flags)) continue; if (!can_provide_timing(s))