Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Ensure that STB0899_POSTPROC_GPIO_POWER is set synchronously.

Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Max Kellermann and committed by
Mauro Carvalho Chehab
f686c143 d812b3ca

+9 -2
+9 -2
drivers/media/dvb-frontends/stb0899_drv.c
··· 601 601 return 0; 602 602 } 603 603 604 + static void stb0899_detach(struct dvb_frontend *fe) 605 + { 606 + struct stb0899_state *state = fe->demodulator_priv; 607 + 608 + /* post process event */ 609 + stb0899_postproc(state, STB0899_POSTPROC_GPIO_POWER, 0); 610 + } 611 + 604 612 static void stb0899_release(struct dvb_frontend *fe) 605 613 { 606 614 struct stb0899_state *state = fe->demodulator_priv; 607 615 608 616 dprintk(state->verbose, FE_DEBUG, 1, "Release Frontend"); 609 - /* post process event */ 610 - stb0899_postproc(state, STB0899_POSTPROC_GPIO_POWER, 0); 611 617 kfree(state); 612 618 } 613 619 ··· 1596 1590 FE_CAN_QPSK 1597 1591 }, 1598 1592 1593 + .detach = stb0899_detach, 1599 1594 .release = stb0899_release, 1600 1595 .init = stb0899_init, 1601 1596 .sleep = stb0899_sleep,