summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-08-08 12:10:09 (GMT)
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-09-26 14:53:29 (GMT)
commitf52a838b74be70b4054ab27e435e9acb92d8c50a (patch)
tree81b9b3dff85a069781244636c0a4cf29f0220d86 /drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
parent2a514dea5fda67958c79f5137d4dcb272f8561e8 (diff)
downloadlinux-f52a838b74be70b4054ab27e435e9acb92d8c50a.tar.xz
V4L/DVB (4391): Refactor dvb_detach calls into a single dvb_frontend_detach function.
Remove buggy dvb_detach() macro and replace with unified dvb_frontend_detach() call. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dvb-usb-dvb.c')
-rw-r--r--drivers/media/dvb/dvb-usb/dvb-usb-dvb.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c b/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
index f0da15e..9f8d3f0 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
+++ b/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
@@ -188,9 +188,7 @@ int dvb_usb_fe_init(struct dvb_usb_device* d)
if (dvb_register_frontend(&d->dvb_adap, d->fe)) {
err("Frontend registration failed.");
- dvb_detach(d->fe->ops.release_sec, d->fe);
- dvb_detach(d->fe->ops.tuner_ops.release, d->fe);
- dvb_detach(d->fe->ops.release, d->fe);
+ dvb_frontend_detach(d->fe);
d->fe = NULL;
return -ENODEV;
}
@@ -207,9 +205,7 @@ int dvb_usb_fe_exit(struct dvb_usb_device *d)
{
if (d->fe != NULL) {
dvb_unregister_frontend(d->fe);
- dvb_detach(d->fe->ops.release_sec, d->fe);
- dvb_detach(d->fe->ops.tuner_ops.release, d->fe);
- dvb_detach(d->fe->ops.release, d->fe);
+ dvb_frontend_detach(d->fe);
}
return 0;
}