summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2013-08-05 10:35:25 -0300
committerChanho Park <chanho61.park@samsung.com>2014-03-20 17:35:10 +0900
commit281c9d92ad3ff5062c3b7974a46541d2ee6a1ce7 (patch)
tree243fa39b546cd1836d608a9a41754750f0fd4eee /drivers/media
parenteb75c7c5022cfac998f3b6ad9548660f26aed1cb (diff)
downloadlinux-3.10-281c9d92ad3ff5062c3b7974a46541d2ee6a1ce7.tar.gz
linux-3.10-281c9d92ad3ff5062c3b7974a46541d2ee6a1ce7.tar.bz2
linux-3.10-281c9d92ad3ff5062c3b7974a46541d2ee6a1ce7.zip
[media] exynos4-is: Initialize the ISP subdev sd->owner field
Set the subdevs owner module so the exynos4_fimc_is module cannot be unloaded when the FIMC-IS driver is in use. 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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/exynos4-is/fimc-isp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-isp.c b/drivers/media/platform/exynos4-is/fimc-isp.c
index 077993c3078..f2b25e71f2b 100644
--- a/drivers/media/platform/exynos4-is/fimc-isp.c
+++ b/drivers/media/platform/exynos4-is/fimc-isp.c
@@ -699,6 +699,8 @@ int fimc_isp_subdev_create(struct fimc_isp *isp)
mutex_init(&isp->subdev_lock);
v4l2_subdev_init(sd, &fimc_is_subdev_ops);
+
+ sd->owner = THIS_MODULE;
sd->grp_id = GRP_ID_FIMC_IS;
sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
snprintf(sd->name, sizeof(sd->name), "FIMC-IS-ISP");