diff options
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 | } |