diff options
author | Manu Abraham <manu@linuxtv.org> | 2007-11-10 23:59:16 +0400 |
---|---|---|
committer | Manu Abraham <manu@linuxtv.org> | 2007-11-10 23:59:16 +0400 |
commit | 1c1a526514057c036f3048f77d26f649326a331b (patch) | |
tree | ea4ad3d7961385daf57413418c447437eb9dc7ce | |
parent | 8df65ba9b060a7455574e6cb255391206046966b (diff) | |
download | mediapointer-dvb-s2-1c1a526514057c036f3048f77d26f649326a331b.tar.gz mediapointer-dvb-s2-1c1a526514057c036f3048f77d26f649326a331b.tar.bz2 |
Code simplification: clock is already initialized,
no need to initialize again.
Thanks to Marko Schluessler <marco@lordzodiac.de> for pointing it out
From: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
-rw-r--r-- | linux/drivers/media/dvb/frontends/stb0899_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/stb0899_drv.c b/linux/drivers/media/dvb/frontends/stb0899_drv.c index 241ce282b..0b09f4859 100644 --- a/linux/drivers/media/dvb/frontends/stb0899_drv.c +++ b/linux/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; |