From d2b242e0687d9be1320a8f9296f44d9e4842bed9 Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Mon, 30 Aug 2004 19:23:35 +0000 Subject: patch by Jose Alberto Reguero: fix firmware download --- linux/drivers/media/dvb/frontends/sp887x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/dvb/frontends') diff --git a/linux/drivers/media/dvb/frontends/sp887x.c b/linux/drivers/media/dvb/frontends/sp887x.c index ad4d3787e..335911f79 100644 --- a/linux/drivers/media/dvb/frontends/sp887x.c +++ b/linux/drivers/media/dvb/frontends/sp887x.c @@ -195,8 +195,8 @@ static int sp887x_initial_setup (struct i2c_adapter *fe, const struct firmware * int c = BLOCKSIZE; int err; - if (i+c > fw_size) - c = fw_size - i; + if (i+c > FW_SIZE) + c = FW_SIZE - i; /* bit 0x8000 in address is set to enable 13bit mode */ /* bit 0x4000 enables multibyte read/write transfers */ -- cgit v1.2.3