diff options
author | Manu Abraham <manu@linuxtv.org> | 2007-11-10 14:59:16 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:21 -0500 |
commit | 72f7841613a9f6e2c013ad9ff61efb5fc16a89f2 (patch) | |
tree | c0970b99a292fb18490fbcde0aecd2e1a50c3cc3 /drivers/media/dvb/frontends/stb0899_drv.c | |
parent | d0a41e8f8fa3d0fe94ebd1cc115f73e3d7b97172 (diff) |
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: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/stb0899_drv.c')
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
550 | */ | 550 | */ |
551 | static u32 stb0899_get_mclk(struct stb0899_state *state) | 551 | static u32 stb0899_get_mclk(struct stb0899_state *state) |
552 | { | 552 | { |
553 | u32 mclk = 90000000, div = 0; | 553 | u32 mclk = 0, div = 0; |
554 | 554 | ||
555 | div = stb0899_read_reg(state, STB0899_NCOARSE); | 555 | div = stb0899_read_reg(state, STB0899_NCOARSE); |
556 | mclk = (div + 1) * state->config->xtal_freq / 6; | 556 | mclk = (div + 1) * state->config->xtal_freq / 6; |