From 180b2e7f91256cd0c81f32fa8befaad00ee5731e Mon Sep 17 00:00:00 2001 From: kpfleming Date: Mon, 22 Jan 2007 20:58:30 +0000 Subject: might be good if i committed the working version of this code... git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1886 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- wct4xxp/base.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'wct4xxp') diff --git a/wct4xxp/base.c b/wct4xxp/base.c index ccf349b..6608a35 100644 --- a/wct4xxp/base.c +++ b/wct4xxp/base.c @@ -2675,6 +2675,7 @@ static void t4_vpm450_init(struct t4 *wc) unsigned int check1, check2; int laws[4] = { 0, }; int x; + unsigned int vpm_capacity; struct firmware embedded_firmware; const struct firmware *firmware = &embedded_firmware; #if !defined(HOTPLUG_FIRMWARE) @@ -2708,7 +2709,7 @@ static void t4_vpm450_init(struct t4 *wc) laws[x] = 1; } - switch (get_vpm450m_capacity(wc)) { + switch ((vpm_capacity = get_vpm450m_capacity(wc))) { case 64: #if defined(HOTPLUG_FIRMWARE) if ((request_firmware(&firmware, oct064_firmware, &wc->dev->dev) != 0) || @@ -2720,6 +2721,7 @@ static void t4_vpm450_init(struct t4 *wc) embedded_firmware.data = _binary_OCT6114D_64D_ima_start; embedded_firmware.size = _binary_OCT6114D_64D_ima_start; #endif + break; case 128: #if defined(HOTPLUG_FIRMWARE) if ((request_firmware(&firmware, oct128_firmware, &wc->dev->dev) != 0) || @@ -2731,8 +2733,9 @@ static void t4_vpm450_init(struct t4 *wc) embedded_firmware.data = _binary_OCT6114D_128D_ima_start; embedded_firmware.size = _binary_OCT6114D_128D_ima_start; #endif + break; default: - printk("Unsupported channel capacity found on VPM module.\n"); + printk("Unsupported channel capacity found on VPM module (%d).\n", vpm_capacity); return; } -- cgit v1.2.3