diff options
Diffstat (limited to 'drivers/media/video/cx18/cx18-streams.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-streams.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-streams.c b/drivers/media/video/cx18/cx18-streams.c index f3d20509a8bd..1728b1d832a9 100644 --- a/drivers/media/video/cx18/cx18-streams.c +++ b/drivers/media/video/cx18/cx18-streams.c | |||
@@ -311,8 +311,10 @@ void cx18_streams_cleanup(struct cx18 *cx, int unregister) | |||
311 | 311 | ||
312 | /* Teardown all streams */ | 312 | /* Teardown all streams */ |
313 | for (type = 0; type < CX18_MAX_STREAMS; type++) { | 313 | for (type = 0; type < CX18_MAX_STREAMS; type++) { |
314 | if (cx->streams[type].dvb.enabled) | 314 | if (cx->streams[type].dvb.enabled) { |
315 | cx18_dvb_unregister(&cx->streams[type]); | 315 | cx18_dvb_unregister(&cx->streams[type]); |
316 | cx->streams[type].dvb.enabled = false; | ||
317 | } | ||
316 | 318 | ||
317 | vdev = cx->streams[type].v4l2dev; | 319 | vdev = cx->streams[type].v4l2dev; |
318 | 320 | ||