Skip to content

Commit

Permalink
V4L/DVB (9441): Code simplification: clock is already initialized, no…
Browse files Browse the repository at this point in the history
… need to initialize again.

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>
  • Loading branch information
Manu Abraham authored and Mauro Carvalho Chehab committed Dec 29, 2008
1 parent d0a41e8 commit 72f7841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/frontends/stb0899_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 72f7841

Please sign in to comment.