]> err.no Git - linux-2.6/commitdiff
[PATCH] dvb: frontend: bcm3510: fix firmware version check
authorHartmut Hackmann <hartmut.hackmann@t-online.de>
Fri, 8 Jul 2005 00:57:42 +0000 (17:57 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:23:54 +0000 (18:23 -0700)
Fix limit for firmware version check was too low for tda10045.

Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/frontends/tda1004x.c

index 8428c04914e463d6eed126461947d755144a2296..237edc4861227e6549c54d220bf71cfdd1424893 100644 (file)
@@ -349,7 +349,7 @@ static int tda1004x_check_upload_ok(struct tda1004x_state *state)
 
        data1 = tda1004x_read_byte(state, TDA1004X_DSP_DATA1);
        data2 = tda1004x_read_byte(state, TDA1004X_DSP_DATA2);
-       if (data1 != 0x67 || data2 < 0x20 || data2 > 0x2a) {
+       if (data1 != 0x67 || data2 < 0x20 || data2 > 0x2e) {
                printk(KERN_INFO "tda1004x: found firmware revision %x -- invalid\n", data2);
                return -EIO;
        }