From 2cba62718f8654512024cb3b8223007dcf12156c Mon Sep 17 00:00:00 2001 From: Russ Meyerriecks Date: Thu, 16 Jul 2015 15:19:20 -0500 Subject: [PATCH] wcb4xxp: Remove "card sync source" logic This logic was reading and printing the bri chips automatic selection of sync source. We always use manual sync selection in the driver so this doesn't need to exist. Signed-off-by: Russ Meyerriecks --- drivers/dahdi/wcb4xxp/base.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/dahdi/wcb4xxp/base.c b/drivers/dahdi/wcb4xxp/base.c index fb86a39..05c1170 100644 --- a/drivers/dahdi/wcb4xxp/base.c +++ b/drivers/dahdi/wcb4xxp/base.c @@ -1645,7 +1645,7 @@ static void hfc_handle_state(struct b4xxp_span *s) { struct b4xxp *b4; unsigned char state, sta; - int nt, newsync, oldalarm; + int nt, oldalarm; unsigned long oldtimer; b4 = s->parent; @@ -1734,17 +1734,6 @@ static void hfc_handle_state(struct b4xxp_span *s) hfc_start_st(s); } } - -/* read in R_BERT_STA to determine where our current sync source is */ - newsync = b4xxp_getreg8(b4, R_BERT_STA) & 0x07; - if (newsync != b4->syncspan) { - if (printk_ratelimit() || DBG) { - dev_info(&b4->pdev->dev, - "new card sync source: port %d\n", - newsync + 1); - } - b4->syncspan = newsync; - } } static void hfc_stop_all_timers(struct b4xxp_span *s)