Commit e1519e86 authored by Philipp Zabel's avatar Philipp Zabel Committed by Mauro Carvalho Chehab

[media] coda: remove context debugfs entry last

Do not remove the per-context debugfs directory before the
per-buffer debugfs entries contained therein.
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarKamil Debski <k.debski@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 27d056f6
...@@ -1693,8 +1693,6 @@ static int coda_release(struct file *file) ...@@ -1693,8 +1693,6 @@ static int coda_release(struct file *file)
v4l2_dbg(1, coda_debug, &dev->v4l2_dev, "Releasing instance %p\n", v4l2_dbg(1, coda_debug, &dev->v4l2_dev, "Releasing instance %p\n",
ctx); ctx);
debugfs_remove_recursive(ctx->debugfs_entry);
if (ctx->inst_type == CODA_INST_DECODER) if (ctx->inst_type == CODA_INST_DECODER)
coda_bit_stream_end_flag(ctx); coda_bit_stream_end_flag(ctx);
...@@ -1728,6 +1726,7 @@ static int coda_release(struct file *file) ...@@ -1728,6 +1726,7 @@ static int coda_release(struct file *file)
clear_bit(ctx->idx, &dev->instance_mask); clear_bit(ctx->idx, &dev->instance_mask);
if (ctx->ops->release) if (ctx->ops->release)
ctx->ops->release(ctx); ctx->ops->release(ctx);
debugfs_remove_recursive(ctx->debugfs_entry);
kfree(ctx); kfree(ctx);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment