aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/mantis/mantis_vp1034.c
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2010-11-14 12:24:36 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 05:16:48 -0500
commita22407faba57c3624beea1a9fad7cbdcf5a19a1a (patch)
treef6e2af4ef614bb254858b5db60da3b70bcb25816 /drivers/media/dvb/mantis/mantis_vp1034.c
parent9c81496a88b04206d0607b23b298b6529da1fcb0 (diff)
[media] Mantis: use dvb_attach to avoid double dereferencing on module removal
Convert the driver to use the dvb_attach macro to avoid the hard dependency on the frontend drivers. The hard dependecy will result in loading a number of unused frontends, and unwanted automatic dereferencing. This fixes a bug where unloading the mantis driver will derefence any attached frontend twice, which will cause an oops if the same frontend is used by another driver. Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_vp1034.c')
-rw-r--r--drivers/media/dvb/mantis/mantis_vp1034.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/mantis/mantis_vp1034.c b/drivers/media/dvb/mantis/mantis_vp1034.c
index 8e6ae558ee57..bf62338a1745 100644
--- a/drivers/media/dvb/mantis/mantis_vp1034.c
+++ b/drivers/media/dvb/mantis/mantis_vp1034.c
@@ -82,7 +82,7 @@ static int vp1034_frontend_init(struct mantis_pci *mantis, struct dvb_frontend *
82 msleep(250); 82 msleep(250);
83 83
84 dprintk(MANTIS_ERROR, 1, "Probing for MB86A16 (DVB-S/DSS)"); 84 dprintk(MANTIS_ERROR, 1, "Probing for MB86A16 (DVB-S/DSS)");
85 fe = mb86a16_attach(&vp1034_mb86a16_config, adapter); 85 fe = dvb_attach(mb86a16_attach, &vp1034_mb86a16_config, adapter);
86 if (fe) { 86 if (fe) {
87 dprintk(MANTIS_ERROR, 1, 87 dprintk(MANTIS_ERROR, 1,
88 "found MB86A16 DVB-S/DSS frontend @0x%02x", 88 "found MB86A16 DVB-S/DSS frontend @0x%02x",