summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wct4xxp/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/wct4xxp/base.c')
-rw-r--r--drivers/dahdi/wct4xxp/base.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c
index 1731eaa..bc9a06d 100644
--- a/drivers/dahdi/wct4xxp/base.c
+++ b/drivers/dahdi/wct4xxp/base.c
@@ -4185,7 +4185,15 @@ static void t4_vpm450_init(struct t4 *wc)
laws[x] = 1;
}
- switch ((vpm_capacity = get_vpm450m_capacity(wc))) {
+ vpm_capacity = get_vpm450m_capacity(wc);
+ if (vpm_capacity != wc->numspans * 32) {
+ dev_info(&wc->dev->dev, "Disabling VPMOCT%03d. TE%dXXP"\
+ " requires a VPMOCT%03d", vpm_capacity,
+ wc->numspans, wc->numspans*32);
+ return;
+ }
+
+ switch (vpm_capacity) {
case 64:
#if defined(HOTPLUG_FIRMWARE)
if ((request_firmware(&firmware, oct064_firmware, &wc->dev->dev) != 0) ||