From: Sylwester Nawrocki Date: Fri, 9 Aug 2013 17:23:53 +0000 (-0300) Subject: [media] exynos4-is: Add missing v4l2_device_unregister() call in fimc_md_remove() X-Git-Tag: firefly_0821_release~176^2~3573^2~1357 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b74bee1584cf88ed28d15520ff7e74bdc69a7f64;p=firefly-linux-kernel-4.4.55.git [media] exynos4-is: Add missing v4l2_device_unregister() call in fimc_md_remove() Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/exynos4-is/media-dev.c b/drivers/media/platform/exynos4-is/media-dev.c index 19f556c5957f..42f121ca91ee 100644 --- a/drivers/media/platform/exynos4-is/media-dev.c +++ b/drivers/media/platform/exynos4-is/media-dev.c @@ -1544,6 +1544,8 @@ static int fimc_md_remove(struct platform_device *pdev) if (!fmd) return 0; + + v4l2_device_unregister(&fmd->v4l2_dev); device_remove_file(&pdev->dev, &dev_attr_subdev_conf_mode); fimc_md_unregister_entities(fmd); fimc_md_pipelines_free(fmd);