summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorChangbing Xiong <cb.xiong@samsung.com>2014-05-09 01:54:11 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-25 17:45:55 -0300
commitd9e091fe7118ce2902a6ad959c30b0f2d41351f0 (patch)
tree4ff7d31a3ef4d1a7f19484e17557cf0394970d50 /drivers/media
parentc4018fa2e4c0b669944c2e5cb9eda96fe786d0a1 (diff)
[media] au0828: Cancel stream-restart operation if frontend is disconnected
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>
Diffstat (limited to 'drivers/media')
-rwxr-xr-x[-rw-r--r--]drivers/media/usb/au0828/au0828-dvb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/usb/au0828/au0828-dvb.c b/drivers/media/usb/au0828/au0828-dvb.c
index 4ae8b1074649..2019e4a168b2 100644..100755
--- a/drivers/media/usb/au0828/au0828-dvb.c
+++ b/drivers/media/usb/au0828/au0828-dvb.c
@@ -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);