[media] au0828: Cancel stream-restart operation if frontend is disconnected
authorChangbing Xiong <cb.xiong@samsung.com>
Fri, 9 May 2014 04:54:11 +0000 (01:54 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 25 May 2014 20:45:55 +0000 (17:45 -0300)
If the tuner is already disconnected, It is meaningless to go on doing the
stream-restart operation, It is better to cancel this operation.

Signed-off-by: Changbing Xiong <cb.xiong@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/au0828/au0828-dvb.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 4ae8b10..2019e4a
@@ -471,6 +471,8 @@ void au0828_dvb_unregister(struct au0828_dev *dev)
        if (dvb->frontend == NULL)
                return;
 
+       cancel_work_sync(&dev->restart_streaming);
+
        dvb_net_release(&dvb->net);
        dvb->demux.dmx.remove_frontend(&dvb->demux.dmx, &dvb->fe_mem);
        dvb->demux.dmx.remove_frontend(&dvb->demux.dmx, &dvb->fe_hw);