diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-01-22 20:58:30 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-01-22 20:58:30 +0000 |
commit | 180b2e7f91256cd0c81f32fa8befaad00ee5731e (patch) | |
tree | 4408d51b338841e9c1237dc9a42c058738fcc0d0 /wct4xxp | |
parent | 9ec284b474eb0fea2d620c79c34beed9e675abce (diff) |
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
Diffstat (limited to 'wct4xxp')
-rw-r--r-- | wct4xxp/base.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |