summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-12 21:35:44 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-21 15:25:31 -0500
commit5b6aa199196220a5901c8d9cbad497fea347850a (patch)
tree19549c8d0918c8d3123416339cd7c2e49f05ca16
parent4628f993bf66d595226d019e87a4baca636b71e2 (diff)
[media] as102-fe: Add a release function
This is needed to free state and for dvb_detach() to be called. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/dvb-frontends/as102_fe.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/as102_fe.c b/drivers/media/dvb-frontends/as102_fe.c
index ef4c3c667782..493665899565 100644
--- a/drivers/media/dvb-frontends/as102_fe.c
+++ b/drivers/media/dvb-frontends/as102_fe.c
@@ -407,6 +407,14 @@ static int as102_fe_ts_bus_ctrl(struct dvb_frontend *fe, int acquire)
state->elna_cfg);
}
+static void as102_fe_release(struct dvb_frontend *fe)
+{
+ struct as102_state *state = fe->demodulator_priv;
+
+ kfree(state);
+}
+
+
static struct dvb_frontend_ops as102_fe_ops = {
.delsys = { SYS_DVBT },
.info = {
@@ -436,6 +444,7 @@ static struct dvb_frontend_ops as102_fe_ops = {
.read_signal_strength = as102_fe_read_signal_strength,
.read_ucblocks = as102_fe_read_ucblocks,
.ts_bus_ctrl = as102_fe_ts_bus_ctrl,
+ .release = as102_fe_release,
};
struct dvb_frontend *as102_attach(const char *name,