diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 9be04772c723..bd05ec7b1cbe 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -3514,7 +3514,7 @@ static u8 *pvr2_full_eeprom_fetch(struct pvr2_hdw *hdw) | |||
3514 | 3514 | ||
3515 | 3515 | ||
3516 | void pvr2_hdw_cpufw_set_enabled(struct pvr2_hdw *hdw, | 3516 | void pvr2_hdw_cpufw_set_enabled(struct pvr2_hdw *hdw, |
3517 | int prom_flag, | 3517 | int mode, |
3518 | int enable_flag) | 3518 | int enable_flag) |
3519 | { | 3519 | { |
3520 | int ret; | 3520 | int ret; |
@@ -3537,11 +3537,12 @@ void pvr2_hdw_cpufw_set_enabled(struct pvr2_hdw *hdw, | |||
3537 | break; | 3537 | break; |
3538 | } | 3538 | } |
3539 | 3539 | ||
3540 | hdw->fw_cpu_flag = (prom_flag == 0); | 3540 | hdw->fw_cpu_flag = (mode != 2); |
3541 | if (hdw->fw_cpu_flag) { | 3541 | if (hdw->fw_cpu_flag) { |
3542 | hdw->fw_size = (mode == 1) ? 0x4000 : 0x2000; | ||
3542 | pvr2_trace(PVR2_TRACE_FIRMWARE, | 3543 | pvr2_trace(PVR2_TRACE_FIRMWARE, |
3543 | "Preparing to suck out CPU firmware"); | 3544 | "Preparing to suck out CPU firmware" |
3544 | hdw->fw_size = 0x2000; | 3545 | " (size=%u)", hdw->fw_size); |
3545 | hdw->fw_buffer = kzalloc(hdw->fw_size,GFP_KERNEL); | 3546 | hdw->fw_buffer = kzalloc(hdw->fw_size,GFP_KERNEL); |
3546 | if (!hdw->fw_buffer) { | 3547 | if (!hdw->fw_buffer) { |
3547 | hdw->fw_size = 0; | 3548 | hdw->fw_size = 0; |