]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[PATCH] dvb: dst: fix broken support for vp-3040 TS204
authorManu Abraham <manu@linuxtv.org>
Wed, 9 Nov 2005 05:35:20 +0000 (21:35 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:02 +0000 (07:56 -0800)
fixes broken support for vp-3040 TS204

Thanks-to: Lee Hammerton <savoury.snax@bulldoghome.com>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/bt8xx/dst.c

index 6f9e5c16803865292d847cf1a3bc0f2808b8f357..418ffbbef96695937c425cd15a3e88b3e3893da1 100644 (file)
@@ -905,10 +905,6 @@ static int dst_get_device_id(struct dst_state *state)
        state->dst_type = use_dst_type;
        dst_type_flags_print(state->type_flags);
 
-       if (state->type_flags & DST_TYPE_HAS_TS204) {
-               dst_packsize(state, 204);
-       }
-
        return 0;
 }
 
@@ -940,6 +936,9 @@ static int dst_probe(struct dst_state *state)
                if (dst_get_tuner_info(state) < 0)
                        dprintk(verbose, DST_INFO, 1, "Tuner: Unsupported command");
        }
+       if (state->type_flags & DST_TYPE_HAS_TS204) {
+               dst_packsize(state, 204);
+       }
        if (state->type_flags & DST_TYPE_HAS_FW_BUILD) {
                if (dst_fw_ver(state) < 0) {
                        dprintk(verbose, DST_INFO, 1, "FW: Unsupported command");