diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2013-04-18 09:05:54 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-25 09:35:56 -0300 |
commit | e41a35cb4be81a56664c52c94ddbdb740dca4f63 (patch) | |
tree | 5428b43cdd917ff7f6859983c0c4cf9fab989a5a /drivers/media/platform | |
parent | 1bc515ac6e60c6437422c98fb3be89b3b0802286 (diff) | |
download | talos-op-linux-e41a35cb4be81a56664c52c94ddbdb740dca4f63.tar.gz talos-op-linux-e41a35cb4be81a56664c52c94ddbdb740dca4f63.zip |
[media] exynos4-is: Unregister fimc-is subdevs from the media device properly
Add missing v4l2_device_unregister_subdev() call for the FIMC-IS subdevs
(currently there is only the FIMC-IS-ISP subdev) so corresponding resources
are properly freed upon the media device driver module removal.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyugmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r-- | drivers/media/platform/exynos4-is/media-dev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/platform/exynos4-is/media-dev.c b/drivers/media/platform/exynos4-is/media-dev.c index 1dbd55422706..a371ee5e857a 100644 --- a/drivers/media/platform/exynos4-is/media-dev.c +++ b/drivers/media/platform/exynos4-is/media-dev.c @@ -823,6 +823,10 @@ static void fimc_md_unregister_entities(struct fimc_md *fmd) fimc_md_unregister_sensor(fmd->sensor[i].subdev); fmd->sensor[i].subdev = NULL; } + + if (fmd->fimc_is) + v4l2_device_unregister_subdev(&fmd->fimc_is->isp.subdev); + v4l2_info(&fmd->v4l2_dev, "Unregistered all entities\n"); } |