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/ttusb-budget | |
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/ttusb-budget')
-rw-r--r-- | drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c index 6f58c66d6ef9..234199875f53 100644 --- a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +++ b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | |||
@@ -1625,9 +1625,7 @@ static void frontend_init(struct ttusb* ttusb) | |||
1625 | } else { | 1625 | } else { |
1626 | if (dvb_register_frontend(&ttusb->adapter, ttusb->fe)) { | 1626 | if (dvb_register_frontend(&ttusb->adapter, ttusb->fe)) { |
1627 | printk("dvb-ttusb-budget: Frontend registration failed!\n"); | 1627 | printk("dvb-ttusb-budget: Frontend registration failed!\n"); |
1628 | dvb_detach(ttusb->fe->ops.release_sec, ttusb->fe); | 1628 | dvb_frontend_detach(ttusb->fe); |
1629 | dvb_detach(ttusb->fe->ops.tuner_ops.release, ttusb->fe); | ||
1630 | dvb_detach(ttusb->fe->ops.release, ttusb->fe); | ||
1631 | ttusb->fe = NULL; | 1629 | ttusb->fe = NULL; |
1632 | } | 1630 | } |
1633 | } | 1631 | } |
@@ -1766,9 +1764,7 @@ static void ttusb_disconnect(struct usb_interface *intf) | |||
1766 | dvb_dmx_release(&ttusb->dvb_demux); | 1764 | dvb_dmx_release(&ttusb->dvb_demux); |
1767 | if (ttusb->fe != NULL) { | 1765 | if (ttusb->fe != NULL) { |
1768 | dvb_unregister_frontend(ttusb->fe); | 1766 | dvb_unregister_frontend(ttusb->fe); |
1769 | dvb_detach(ttusb->fe->ops.release_sec, ttusb->fe); | 1767 | dvb_frontend_detach(ttusb->fe); |
1770 | dvb_detach(ttusb->fe->ops.tuner_ops.release, ttusb->fe); | ||
1771 | dvb_detach(ttusb->fe->ops.release, ttusb->fe); | ||
1772 | } | 1768 | } |
1773 | i2c_del_adapter(&ttusb->i2c_adap); | 1769 | i2c_del_adapter(&ttusb->i2c_adap); |
1774 | dvb_unregister_adapter(&ttusb->adapter); | 1770 | dvb_unregister_adapter(&ttusb->adapter); |