V4L/DVB (9441): Code simplification: clock is already initialized, no need to initial...
authorManu Abraham <manu@linuxtv.org>
Sat, 10 Nov 2007 19:59:16 +0000 (16:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:21 +0000 (17:53 -0200)
Thanks to Marko Schluessler <marco@lordzodiac.de> for pointing it out

Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb0899_drv.c

index 0b2a908f1a5f38363f3e71e7ea301293f0772551..862b08685fb085aaf2e196624c8a962ae890ee83 100644 (file)
@@ -550,7 +550,7 @@ int stb0899_write_reg(struct stb0899_state *state, unsigned int reg, u8 data)
  */
 static u32 stb0899_get_mclk(struct stb0899_state *state)
 {
-       u32 mclk = 90000000, div = 0;
+       u32 mclk = 0, div = 0;
 
        div = stb0899_read_reg(state, STB0899_NCOARSE);
        mclk = (div + 1) * state->config->xtal_freq / 6;