|
@@ -929,10 +929,11 @@ static int s5p_mfc_release(struct file *file)
|
|
mfc_debug_enter();
|
|
mfc_debug_enter();
|
|
if (dev)
|
|
if (dev)
|
|
mutex_lock(&dev->mfc_mutex);
|
|
mutex_lock(&dev->mfc_mutex);
|
|
- s5p_mfc_clock_on();
|
|
|
|
vb2_queue_release(&ctx->vq_src);
|
|
vb2_queue_release(&ctx->vq_src);
|
|
vb2_queue_release(&ctx->vq_dst);
|
|
vb2_queue_release(&ctx->vq_dst);
|
|
if (dev) {
|
|
if (dev) {
|
|
|
|
+ s5p_mfc_clock_on();
|
|
|
|
+
|
|
/* Mark context as idle */
|
|
/* Mark context as idle */
|
|
clear_work_bit_irqsave(ctx);
|
|
clear_work_bit_irqsave(ctx);
|
|
/*
|
|
/*
|
|
@@ -954,9 +955,9 @@ static int s5p_mfc_release(struct file *file)
|
|
if (s5p_mfc_power_off() < 0)
|
|
if (s5p_mfc_power_off() < 0)
|
|
mfc_err("Power off failed\n");
|
|
mfc_err("Power off failed\n");
|
|
}
|
|
}
|
|
|
|
+ mfc_debug(2, "Shutting down clock\n");
|
|
|
|
+ s5p_mfc_clock_off();
|
|
}
|
|
}
|
|
- mfc_debug(2, "Shutting down clock\n");
|
|
|
|
- s5p_mfc_clock_off();
|
|
|
|
if (dev)
|
|
if (dev)
|
|
dev->ctx[ctx->num] = NULL;
|
|
dev->ctx[ctx->num] = NULL;
|
|
s5p_mfc_dec_ctrls_delete(ctx);
|
|
s5p_mfc_dec_ctrls_delete(ctx);
|