summaryrefslogtreecommitdiff
path: root/drivers/media/platform/vimc/vimc-scaler.c
diff options
context:
space:
mode:
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>2019-10-07 10:50:02 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-10-24 19:01:03 -0300
commit9fb82aaa85d3d4b7be80a15dd0e740aab45bc491 (patch)
treec1572229de772a9ce6c7908a81f823b458eced8f /drivers/media/platform/vimc/vimc-scaler.c
parent291aca4e7bdd87a01e21d90382fd0b231b280272 (diff)
downloadlwn-9fb82aaa85d3d4b7be80a15dd0e740aab45bc491.tar.gz
lwn-9fb82aaa85d3d4b7be80a15dd0e740aab45bc491.zip
media: vimc: move media_entity_cleanup to release callbacks
according to the docs, this function must be called during the cleanup phase after unregistering the entity. Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Acked-by: Helen Koike <helen.koike@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-scaler.c')
-rw-r--r--drivers/media/platform/vimc/vimc-scaler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/vimc/vimc-scaler.c b/drivers/media/platform/vimc/vimc-scaler.c
index a6a3cc5be872..1982bc089af5 100644
--- a/drivers/media/platform/vimc/vimc-scaler.c
+++ b/drivers/media/platform/vimc/vimc-scaler.c
@@ -336,6 +336,7 @@ static void vimc_sca_release(struct v4l2_subdev *sd)
struct vimc_sca_device *vsca =
container_of(sd, struct vimc_sca_device, sd);
+ media_entity_cleanup(vsca->ved.ent);
vimc_pads_cleanup(vsca->ved.pads);
kfree(vsca);
}