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/b2c2 | |
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/b2c2')
-rw-r--r-- | drivers/media/dvb/b2c2/flexcop-fe-tuner.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c index e2d2e65dea52..0c3bab37d8df 100644 --- a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c +++ b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c | |||
@@ -571,9 +571,7 @@ int flexcop_frontend_init(struct flexcop_device *fc) | |||
571 | } else { | 571 | } else { |
572 | if (dvb_register_frontend(&fc->dvb_adapter, fc->fe)) { | 572 | if (dvb_register_frontend(&fc->dvb_adapter, fc->fe)) { |
573 | err("frontend registration failed!"); | 573 | err("frontend registration failed!"); |
574 | dvb_detach(fc->fe->ops.release_sec, fc->fe); | 574 | dvb_frontend_detach(fc->fe); |
575 | dvb_detach(fc->fe->ops.tuner_ops.release, fc->fe); | ||
576 | dvb_detach(fc->fe->ops.release, fc->fe); | ||
577 | fc->fe = NULL; | 575 | fc->fe = NULL; |
578 | return -EINVAL; | 576 | return -EINVAL; |
579 | } | 577 | } |
@@ -586,9 +584,7 @@ void flexcop_frontend_exit(struct flexcop_device *fc) | |||
586 | { | 584 | { |
587 | if (fc->init_state & FC_STATE_FE_INIT) { | 585 | if (fc->init_state & FC_STATE_FE_INIT) { |
588 | dvb_unregister_frontend(fc->fe); | 586 | dvb_unregister_frontend(fc->fe); |
589 | dvb_detach(fc->fe->ops.release_sec, fc->fe); | 587 | dvb_frontend_detach(fc->fe); |
590 | dvb_detach(fc->fe->ops.tuner_ops.release, fc->fe); | ||
591 | dvb_detach(fc->fe->ops.release, fc->fe); | ||
592 | } | 588 | } |
593 | 589 | ||
594 | fc->init_state &= ~FC_STATE_FE_INIT; | 590 | fc->init_state &= ~FC_STATE_FE_INIT; |