[media] exynos4-is: Add missing v4l2_device_unregister() call in fimc_md_remove()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 9 Aug 2013 17:23:53 +0000 (14:23 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 07:51:54 +0000 (04:51 -0300)
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/exynos4-is/media-dev.c

index 19f556c5957f5661bbc5b5ccb35575d6e01b97a6..42f121ca91ee7e3ace9915b6607d33d573577655 100644 (file)
@@ -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);