summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-blackbird.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-05-30 12:29:32 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2007-05-30 12:29:32 -0400
commitad749f7d3035a52f4c8edf06922e28eae8b35b4d (patch)
treea838b242604ba1991655e816583f651c3c35702c /linux/drivers/media/video/cx88/cx88-blackbird.c
parent8854887bb73509124ae8dc12705286ac911c96aa (diff)
downloadmediapointer-dvb-s2-ad749f7d3035a52f4c8edf06922e28eae8b35b4d.tar.gz
mediapointer-dvb-s2-ad749f7d3035a52f4c8edf06922e28eae8b35b4d.tar.bz2
cx88: kill dev->fw_size
From: Michael Krufky <mkrufky@linuxtv.org> Now that cx88-blackbird is only accepting the official firmware image, we no longer have any need to store the size of the firmware inside the cx88 data structure. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-blackbird.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-blackbird.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-blackbird.c b/linux/drivers/media/video/cx88/cx88-blackbird.c
index f94833d1c..9103d9567 100644
--- a/linux/drivers/media/video/cx88/cx88-blackbird.c
+++ b/linux/drivers/media/video/cx88/cx88-blackbird.c
@@ -410,7 +410,7 @@ static int blackbird_find_mailbox(struct cx8802_dev *dev)
u32 value;
int i;
- for (i = 0; i < dev->fw_size; i++) {
+ for (i = 0; i < BLACKBIRD_FIRM_IMAGE_SIZE; i++) {
memory_read(dev->core, i, &value);
if (value == signature[signaturecnt])
signaturecnt++;
@@ -469,7 +469,6 @@ static int blackbird_load_firmware(struct cx8802_dev *dev)
release_firmware(firmware);
return -1;
}
- dev->fw_size = firmware->size;
if (0 != memcmp(firmware->data, magic, 8)) {
dprintk(0, "ERROR: Firmware magic mismatch, wrong file?\n");