summaryrefslogtreecommitdiff
path: root/drivers/media/test-drivers/vidtv/vidtv_tuner.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-11 14:14:36 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-12 10:43:54 +0300
commit63101b75689331c5392c9330291f57b9fd2ef94c (patch)
treef4d8ca04a8bce08e338a35301f4171147d566237 /drivers/media/test-drivers/vidtv/vidtv_tuner.c
parent1f9a704601f02710f1456858f77e338b05c82f17 (diff)
downloadlinux-63101b75689331c5392c9330291f57b9fd2ef94c.tar.xz
media: vidtv: fix driver unbind/remove
The current remove logic is broken and causes an OOPS. Fix it. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/test-drivers/vidtv/vidtv_tuner.c')
-rw-r--r--drivers/media/test-drivers/vidtv/vidtv_tuner.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/test-drivers/vidtv/vidtv_tuner.c b/drivers/media/test-drivers/vidtv/vidtv_tuner.c
index 857668f8d714..c8e64bab0379 100644
--- a/drivers/media/test-drivers/vidtv/vidtv_tuner.c
+++ b/drivers/media/test-drivers/vidtv/vidtv_tuner.c
@@ -402,10 +402,7 @@ static int vidtv_tuner_i2c_probe(struct i2c_client *client,
static int vidtv_tuner_i2c_remove(struct i2c_client *client)
{
struct vidtv_tuner_dev *tuner_dev = i2c_get_clientdata(client);
- struct dvb_frontend *fe = tuner_dev->fe;
- memset(&fe->ops.tuner_ops, 0, sizeof(struct dvb_tuner_ops));
- fe->tuner_priv = NULL;
kfree(tuner_dev);
return 0;