diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-07-28 23:10:41 +0100 |
---|---|---|
committer | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-07-28 23:10:41 +0100 |
commit | 401232ba8026e33a71183d3c80a83b53b3ef6ee4 (patch) | |
tree | 597575847989714d163281f4cdab33ad36ad42c3 /linux/drivers/media/dvb/b2c2 | |
parent | 9fdfcc1df7ba94e30044857638249b0194003335 (diff) | |
download | mediapointer-dvb-s2-401232ba8026e33a71183d3c80a83b53b3ef6ee4.tar.gz mediapointer-dvb-s2-401232ba8026e33a71183d3c80a83b53b3ef6ee4.tar.bz2 |
Refactor dvb_detach calls into a single dvb_frontend_detach function.
From: Andrew de Quincey <adq_dvb@lidskialf.net>
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>
Diffstat (limited to 'linux/drivers/media/dvb/b2c2')
-rw-r--r-- | linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c b/linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c index d879b17fb..d8137a9b4 100644 --- a/linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c +++ b/linux/drivers/media/dvb/b2c2/flexcop-fe-tuner.c @@ -586,9 +586,7 @@ int flexcop_frontend_init(struct flexcop_device *fc) } else { if (dvb_register_frontend(&fc->dvb_adapter, fc->fe)) { err("frontend registration failed!"); - dvb_detach(fc->fe->ops.release_sec, fc->fe); - dvb_detach(fc->fe->ops.tuner_ops.release, fc->fe); - dvb_detach(fc->fe->ops.release, fc->fe); + dvb_frontend_detach(fc->fe); fc->fe = NULL; return -EINVAL; } @@ -601,9 +599,7 @@ void flexcop_frontend_exit(struct flexcop_device *fc) { if (fc->init_state & FC_STATE_FE_INIT) { dvb_unregister_frontend(fc->fe); - dvb_detach(fc->fe->ops.release_sec, fc->fe); - dvb_detach(fc->fe->ops.tuner_ops.release, fc->fe); - dvb_detach(fc->fe->ops.release, fc->fe); + dvb_frontend_detach(fc->fe); } fc->init_state &= ~FC_STATE_FE_INIT; |