aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/dvb/ttpci/budget.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/ttpci/budget.c')
-rw-r--r--drivers/media/dvb/ttpci/budget.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/dvb/ttpci/budget.c b/drivers/media/dvb/ttpci/budget.c
index 19beb11f966..e846b962017 100644
--- a/drivers/media/dvb/ttpci/budget.c
+++ b/drivers/media/dvb/ttpci/budget.c
@@ -442,9 +442,7 @@ static void frontend_init(struct budget *budget)
error_out:
printk("budget: Frontend registration failed!\n");
- dvb_detach(budget->dvb_frontend->ops.release_sec, budget->dvb_frontend);
- dvb_detach(budget->dvb_frontend->ops.tuner_ops.release, budget->dvb_frontend);
- dvb_detach(budget->dvb_frontend->ops.release, budget->dvb_frontend);
+ dvb_frontend_detach(budget->dvb_frontend);
budget->dvb_frontend = NULL;
return;
}
@@ -484,9 +482,7 @@ static int budget_detach (struct saa7146_dev* dev)
if (budget->dvb_frontend) {
dvb_unregister_frontend(budget->dvb_frontend);
- dvb_detach(budget->dvb_frontend->ops.release_sec, budget->dvb_frontend);
- dvb_detach(budget->dvb_frontend->ops.tuner_ops.release, budget->dvb_frontend);
- dvb_detach(budget->dvb_frontend->ops.release, budget->dvb_frontend);
+ dvb_frontend_detach(budget->dvb_frontend);
}
err = ttpci_budget_deinit (budget);