Skip to content

Commit

Permalink
V4L/DVB (13799): [Mantis] Unregister frontend
Browse files Browse the repository at this point in the history
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Manu Abraham authored and Mauro Carvalho Chehab committed Jan 17, 2010
1 parent bc832fa commit 68fe255
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/media/dvb/mantis/mantis_dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ int __devinit mantis_dvb_init(struct mantis_pci *mantis)
err5:
tasklet_kill(&mantis->tasklet);
dvb_net_release(&mantis->dvbnet);

dvb_unregister_frontend(mantis->fe);
dvb_frontend_detach(mantis->fe);
err4:
mantis->demux.dmx.remove_frontend(&mantis->demux.dmx, &mantis->fe_mem);

Expand Down Expand Up @@ -281,7 +282,7 @@ int __devexit mantis_dvb_exit(struct mantis_pci *mantis)
err = mantis_frontend_shutdown(mantis);
if (err != 0)
dprintk(MANTIS_ERROR, 1, "Frontend exit while POWER ON! <%d>", err);

dvb_frontend_detach(mantis->fe);
dvb_unregister_frontend(mantis->fe);
}

Expand Down

0 comments on commit 68fe255

Please sign in to comment.