summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/fc0012.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/tuners/fc0012.c')
-rw-r--r--drivers/media/tuners/fc0012.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/tuners/fc0012.c b/drivers/media/tuners/fc0012.c
index 7faff84e5ea8..30508f44e5f9 100644
--- a/drivers/media/tuners/fc0012.c
+++ b/drivers/media/tuners/fc0012.c
@@ -55,6 +55,12 @@ static int fc0012_readreg(struct fc0012_priv *priv, u8 reg, u8 *val)
return 0;
}
+static void fc0012_release(struct dvb_frontend *fe)
+{
+ kfree(fe->tuner_priv);
+ fe->tuner_priv = NULL;
+}
+
static int fc0012_init(struct dvb_frontend *fe)
{
struct fc0012_priv *priv = fe->tuner_priv;
@@ -420,7 +426,7 @@ static const struct dvb_tuner_ops fc0012_tuner_ops = {
.frequency_step = 0,
},
- .release = dvb_tuner_simple_release,
+ .release = fc0012_release,
.init = fc0012_init,