diff options
Diffstat (limited to 'wct4xxp/base.c')
-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; } |