From: Andreas Regel Date: Tue, 5 Jan 2010 22:24:56 +0000 (-0300) Subject: V4L/DVB (13985): [STV090x] reset mclk and dev_ver of internal structure after allocating X-Git-Tag: firefly_0821_release~9833^2~3102^2~250 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=76b9ef97953c120172dfc07d48e6d219164c6f6a;p=firefly-linux-kernel-4.4.55.git V4L/DVB (13985): [STV090x] reset mclk and dev_ver of internal structure after allocating When mclk is not 0 then it will never be set to the correct value and the Demodulator will not work. Signed-off-by: Andreas Regel Signed-off-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c index 4dc30911f408..3c5fba838827 100644 --- a/drivers/media/dvb/frontends/stv090x.c +++ b/drivers/media/dvb/frontends/stv090x.c @@ -4517,6 +4517,8 @@ struct dvb_frontend *stv090x_attach(const struct stv090x_config *config, GFP_KERNEL); temp_int = append_internal(state->internal); state->internal->num_used = 1; + state->internal->mclk = 0; + state->internal->dev_ver = 0; state->internal->i2c_adap = state->i2c; state->internal->i2c_addr = state->config->address; dprintk(FE_INFO, 1, "Create New Internal Structure!");