[media] Mantis: use dvb_attach to avoid double dereferencing on module removal
authorBjørn Mork <bjorn@mork.no>
Sun, 14 Nov 2010 17:24:36 +0000 (14:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:48 +0000 (08:16 -0200)
commita22407faba57c3624beea1a9fad7cbdcf5a19a1a
treef6e2af4ef614bb254858b5db60da3b70bcb25816
parent9c81496a88b04206d0607b23b298b6529da1fcb0
[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>
drivers/media/dvb/mantis/hopper_vp3028.c
drivers/media/dvb/mantis/mantis_vp1033.c
drivers/media/dvb/mantis/mantis_vp1034.c
drivers/media/dvb/mantis/mantis_vp1041.c
drivers/media/dvb/mantis/mantis_vp2033.c
drivers/media/dvb/mantis/mantis_vp2040.c
drivers/media/dvb/mantis/mantis_vp3030.c