From: Manu Abraham Date: Sat, 10 Nov 2007 19:59:16 +0000 (-0300) Subject: V4L/DVB (9441): Code simplification: clock is already initialized, no need to initial... X-Git-Tag: MMI-PSA29.97-13-9~30449^2~503 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72f7841613a9f6e2c013ad9ff61efb5fc16a89f2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git V4L/DVB (9441): Code simplification: clock is already initialized, no need to initialize again. Thanks to Marko Schluessler for pointing it out Signed-off-by: Marko Schluessler Signed-off-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c index 0b2a908f1a5f..862b08685fb0 100644 --- a/drivers/media/dvb/frontends/stb0899_drv.c +++ b/drivers/media/dvb/frontends/stb0899_drv.c @@ -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;