diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-08-08 08:10:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 10:53:29 -0400 |
commit | f52a838b74be70b4054ab27e435e9acb92d8c50a (patch) | |
tree | 81b9b3dff85a069781244636c0a4cf29f0220d86 /drivers/media/dvb/ttpci/av7110.c | |
parent | 2a514dea5fda67958c79f5137d4dcb272f8561e8 (diff) |
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/ttpci/av7110.c')
-rw-r--r-- | drivers/media/dvb/ttpci/av7110.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index d195cf591081..5742154d8841 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
@@ -1385,9 +1385,7 @@ static void dvb_unregister(struct av7110 *av7110) | |||
1385 | 1385 | ||
1386 | if (av7110->fe != NULL) { | 1386 | if (av7110->fe != NULL) { |
1387 | dvb_unregister_frontend(av7110->fe); | 1387 | dvb_unregister_frontend(av7110->fe); |
1388 | dvb_detach(av7110->fe->ops.release_sec, av7110->fe); | 1388 | dvb_frontend_detach(av7110->fe); |
1389 | dvb_detach(av7110->fe->ops.tuner_ops.release, av7110->fe); | ||
1390 | dvb_detach(av7110->fe->ops.release, av7110->fe); | ||
1391 | } | 1389 | } |
1392 | dvb_unregister_device(av7110->osd_dev); | 1390 | dvb_unregister_device(av7110->osd_dev); |
1393 | av7110_av_unregister(av7110); | 1391 | av7110_av_unregister(av7110); |
@@ -2259,9 +2257,7 @@ static int frontend_init(struct av7110 *av7110) | |||
2259 | ret = dvb_register_frontend(&av7110->dvb_adapter, av7110->fe); | 2257 | ret = dvb_register_frontend(&av7110->dvb_adapter, av7110->fe); |
2260 | if (ret < 0) { | 2258 | if (ret < 0) { |
2261 | printk("av7110: Frontend registration failed!\n"); | 2259 | printk("av7110: Frontend registration failed!\n"); |
2262 | dvb_detach(av7110->fe->ops.release_sec, av7110->fe); | 2260 | dvb_frontend_detach(av7110->fe); |
2263 | dvb_detach(av7110->fe->ops.tuner_ops.release, av7110->fe); | ||
2264 | dvb_detach(av7110->fe->ops.release, av7110->fe); | ||
2265 | av7110->fe = NULL; | 2261 | av7110->fe = NULL; |
2266 | } | 2262 | } |
2267 | } | 2263 | } |