[svn-commits] kpfleming: linux/trunk r4651 - /linux/trunk/drivers/dahdi/wct4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 1 17:46:02 CDT 2008


Author: kpfleming
Date: Fri Aug  1 17:46:02 2008
New Revision: 4651

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4651
Log:
fix a couple of places where the driver assumed 4 spans were present on the card

(closes issue #13141)
Reported by: pabelanger


Modified:
    linux/trunk/drivers/dahdi/wct4xxp/base.c

Modified: linux/trunk/drivers/dahdi/wct4xxp/base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/wct4xxp/base.c?view=diff&rev=4651&r1=4650&r2=4651
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/base.c Fri Aug  1 17:46:02 2008
@@ -2811,7 +2811,7 @@
 	if ((wc->intcount < 10) || !(wc->intcount % 1000)) {
 		status2 = t4_framer_in(wc, 0, FRMR_CIS);
 		printk("Status2: %04x\n", status2);
-		for (x = 0;x<4;x++) {
+		for (x = 0;x<wc->numspans;x++) {
 			status2 = t4_framer_in(wc, x, FRMR_FRS0);
 			printk("FRS0/%d: %04x\n", x, status2);
 		}
@@ -3443,7 +3443,7 @@
 	printk("TE%dXXP: Launching card: %d\n", wc->numspans, wc->order);
 
 	/* Setup serial parameters and system interface */
-	for (x=0;x<4;x++)
+	for (x=0;x<wc->numspans;x++)
 		t4_serial_setup(wc, x);
 
 	if (dahdi_register(&wc->tspans[0]->span, 0)) {




More information about the svn-commits mailing list