Linux Kernels

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

This change “V4L/DVB (9441): Code simplification: clock is already initialized, no need to initialize again.” (commit 72f7841) in Linux kernel is authored by Manu Abraham <manu [at] linuxtv.org> on Sat Nov 10 16:59:16 2007 -0300.

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

The change “V4L/DVB (9441): Code simplification: clock is already initialized, no need to initialize again.” introduces changes as follows.

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>

Linux kernel releases containing commit 72f7841

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "V4L/DVB (9441): Code simplification: clock is already initialized, no need to initialize again."

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/media/dvb/frontends/stb0899_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
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;

The commit for this change in Linux stable tree is 72f7841 (patch).

Last modified: 2020/01/11 09:49