]> err.no Git - linux-2.6/commitdiff
V4L/DVB (6724): tda18271: remove duplicated code
authorMichael Krufky <mkrufky@linuxtv.org>
Sun, 2 Dec 2007 05:32:49 +0000 (02:32 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:03:12 +0000 (19:03 -0200)
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/frontends/tda18271-fe.c

index 25c127f67c224e62c8edb8775018d882c42aa0e5..1944177da873ee5c3dc0a37a719bc304d00ed7c8 100644 (file)
@@ -359,12 +359,7 @@ static int tda18271_tune(struct dvb_frontend *fe,
        u32 div, N = 0;
        int i;
 
-       tda18271_read_regs(fe);
-
-       /* test IR_CAL_OK to see if we need init */
-       if ((regs[R_EP1] & 0x08) == 0)
-               tda18271_init_regs(fe);
-
+       tda18271_init(fe);
 
        dprintk(1, "freq = %d, ifc = %d\n", freq, ifc);