V4L/DVB (13805): Fix: Unregister the frontend before detaching
authorManu Abraham <abraham.manu@gmail.com>
Wed, 9 Dec 2009 22:59:26 +0000 (19:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:44 +0000 (11:55 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/mantis/mantis_dvb.c

index 1e08e31076393c239eb5066a29430074febde305..54bf4ea9efd756893f733a75ff7d81a394e5cf40 100644 (file)
@@ -281,8 +281,8 @@ 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);
+               dvb_frontend_detach(mantis->fe);
        }
 
        tasklet_kill(&mantis->tasklet);