summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-hdw.c
diff options
context:
space:
mode:
authorGary Francis <gary.francis@serverlan.plus.com>2009-11-25 07:03:31 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 21:42:11 +0100
commit75727460a6dfa4c7fd8472a99269982ec4662e64 (patch)
tree90cdd7d5edc0a13dcc15b7bfdcde24a5dd4181b3 /drivers/media/video/pvrusb2/pvrusb2-hdw.c
parentV4L/DVB (13499): pvrusb2: Cosmetic tweak to minimize size_t exposure (diff)
downloadlinux-75727460a6dfa4c7fd8472a99269982ec4662e64.tar.xz
linux-75727460a6dfa4c7fd8472a99269982ec4662e64.zip
V4L/DVB (13500): pvrusb2: Fix lingering 16KB FX2 Firmware issues
These are additional fixes to enable proper pvrusb2 support of 16KB sized FX2 firmware. Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index e93f3e2c25e7..1bbdab08fe0e 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -1522,8 +1522,8 @@ static int pvr2_upload_firmware1(struct pvr2_hdw *hdw)
trace_firmware("Upload done (%d bytes sent)",ret);
- /* We should have written 8192 bytes */
- if (ret == 8192) {
+ /* We should have written fwsize bytes */
+ if (ret == fwsize) {
hdw->fw1_state = FW1_STATE_RELOAD;
return 0;
}