Commit 72f78416 authored by Manu Abraham's avatar Manu Abraham Committed by Mauro Carvalho Chehab

V4L/DVB (9441): Code simplification: clock is already initialized, no need to initialize again.

Thanks to Marko Schluessler <marco@lordzodiac.de> for pointing it out
Signed-off-by: default avatarMarko Schluessler <marco@lordzodiac.de>
Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d0a41e8f
...@@ -550,7 +550,7 @@ int stb0899_write_reg(struct stb0899_state *state, unsigned int reg, u8 data) ...@@ -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) 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); div = stb0899_read_reg(state, STB0899_NCOARSE);
mclk = (div + 1) * state->config->xtal_freq / 6; mclk = (div + 1) * state->config->xtal_freq / 6;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment