summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2015-01-23 16:51:17 (GMT)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-02-02 11:59:11 (GMT)
commite1519e866b73ff49aaf017d8ac08eb96944ff191 (patch)
treeb438df41a35f3b48001f4a3c34e8fb35d88e0125 /drivers
parent27d056f67f514f9f5459c41c2b72cb044c7d56df (diff)
downloadlinux-e1519e866b73ff49aaf017d8ac08eb96944ff191.tar.xz
[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: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/coda/coda-common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index ea7a0dc..8b4bd88 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -1693,8 +1693,6 @@ static int coda_release(struct file *file)
v4l2_dbg(1, coda_debug, &dev->v4l2_dev, "Releasing instance %p\n",
ctx);
- debugfs_remove_recursive(ctx->debugfs_entry);
-
if (ctx->inst_type == CODA_INST_DECODER)
coda_bit_stream_end_flag(ctx);
@@ -1728,6 +1726,7 @@ static int coda_release(struct file *file)
clear_bit(ctx->idx, &dev->instance_mask);
if (ctx->ops->release)
ctx->ops->release(ctx);
+ debugfs_remove_recursive(ctx->debugfs_entry);
kfree(ctx);
return 0;