[media] exynos4-is: Initialize the ISP subdev sd->owner field
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 5 Aug 2013 13:35:25 +0000 (10:35 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 07:51:25 +0000 (04:51 -0300)
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>
drivers/media/platform/exynos4-is/fimc-isp.c

index cf520a7d7f712abd23f1c553607ddc5df410a665..d2e6cba3566da5a1462c648c05d6d796315cc272 100644 (file)
@@ -672,6 +672,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");