summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/saa7146_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/common/saa7146_video.c')
-rw-r--r--linux/drivers/media/common/saa7146_video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/common/saa7146_video.c b/linux/drivers/media/common/saa7146_video.c
index ce3093dcd..955917d02 100644
--- a/linux/drivers/media/common/saa7146_video.c
+++ b/linux/drivers/media/common/saa7146_video.c
@@ -1418,6 +1418,7 @@ static void video_close(struct saa7146_dev *dev, struct file *file)
if( fh == vv->ov_data->fh ) {
spin_lock_irqsave(&dev->slock,flags);
saa7146_stop_preview(fh);
+ saa7146_res_free(fh, RESOURCE_DMA1_HPS|RESOURCE_DMA2_CLP);
spin_unlock_irqrestore(&dev->slock,flags);
}
}