[media] marvell-cam: Remove broken "owner" logic
[deliverable/linux.git] / drivers / media / video / marvell-ccic / mcam-core.c
index 35cd89d3e6768503d9ef3043b51468dc4d621fd9..b261182467636e85baab6b5ce88bce595d4a227b 100644 (file)
@@ -1564,11 +1564,8 @@ static int mcam_v4l_release(struct file *filp)
                        singles, delivered);
        mutex_lock(&cam->s_mutex);
        (cam->users)--;
-       if (filp == cam->owner) {
-               mcam_ctlr_stop_dma(cam);
-               cam->owner = NULL;
-       }
        if (cam->users == 0) {
+               mcam_ctlr_stop_dma(cam);
                mcam_cleanup_vb2(cam);
                mcam_ctlr_power_down(cam);
                if (cam->buffer_mode == B_vmalloc && alloc_bufs_at_read)
This page took 0.024459 seconds and 5 git commands to generate.