Commit f686c143 authored by Max Kellermann's avatar Max Kellermann Committed by Mauro Carvalho Chehab

[media] stb0899: move code to "detach" callback

Ensure that STB0899_POSTPROC_GPIO_POWER is set synchronously.
Signed-off-by: default avatarMax Kellermann <max.kellermann@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent d812b3ca
...@@ -601,13 +601,19 @@ static int stb0899_postproc(struct stb0899_state *state, u8 ctl, int enable) ...@@ -601,13 +601,19 @@ static int stb0899_postproc(struct stb0899_state *state, u8 ctl, int enable)
return 0; return 0;
} }
static void stb0899_release(struct dvb_frontend *fe) static void stb0899_detach(struct dvb_frontend *fe)
{ {
struct stb0899_state *state = fe->demodulator_priv; struct stb0899_state *state = fe->demodulator_priv;
dprintk(state->verbose, FE_DEBUG, 1, "Release Frontend");
/* post process event */ /* post process event */
stb0899_postproc(state, STB0899_POSTPROC_GPIO_POWER, 0); stb0899_postproc(state, STB0899_POSTPROC_GPIO_POWER, 0);
}
static void stb0899_release(struct dvb_frontend *fe)
{
struct stb0899_state *state = fe->demodulator_priv;
dprintk(state->verbose, FE_DEBUG, 1, "Release Frontend");
kfree(state); kfree(state);
} }
...@@ -1590,6 +1596,7 @@ static const struct dvb_frontend_ops stb0899_ops = { ...@@ -1590,6 +1596,7 @@ static const struct dvb_frontend_ops stb0899_ops = {
FE_CAN_QPSK FE_CAN_QPSK
}, },
.detach = stb0899_detach,
.release = stb0899_release, .release = stb0899_release,
.init = stb0899_init, .init = stb0899_init,
.sleep = stb0899_sleep, .sleep = stb0899_sleep,
......
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