Skip to content

Commit

Permalink
[media] as102-fe: Add a release function
Browse files Browse the repository at this point in the history
This is needed to free state and for dvb_detach() to be
called.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
  • Loading branch information
Mauro Carvalho Chehab committed Aug 21, 2014
1 parent 4628f99 commit 5b6aa19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/media/dvb-frontends/as102_fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5b6aa19

Please sign in to comment.