From 4c061ca58bf7cbedb5d4079a056734c02b9fef27 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 27 Jul 2005 22:05:47 +0000 Subject: Fix for dualspan data errors git-svn-id: http://svn.digium.com/svn/zaptel/trunk@710 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- wct4xxp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wct4xxp.c b/wct4xxp.c index 3a6b0e2..3d877d6 100755 --- a/wct4xxp.c +++ b/wct4xxp.c @@ -2507,7 +2507,7 @@ static int __devinit t4_launch(struct t4 *wc) printk("TE%dXXP: Launching card: %d\n", wc->numspans, wc->order); /* Setup serial parameters and system interface */ - for (x=0;xnumspans;x++) + for (x=0;x<4;x++) t4_serial_setup(wc, x); if (zt_register(&wc->tspans[0]->span, 0)) { @@ -2649,7 +2649,7 @@ static int __devinit t4_init_one(struct pci_dev *pdev, const struct pci_device_i #endif /* Allocate pieces we need here */ - for (x=0;xnumspans;x++) { + for (x=0;x<4;x++) { if (wc->t1e1 & (1 << x)) { wc->tspans[x] = kmalloc(sizeof(struct t4_span) + sizeof(struct zt_chan) * 31, GFP_KERNEL); if (wc->tspans[x]) { -- cgit v1.2.3