From: Sylwester Nawrocki Date: Mon, 5 Aug 2013 13:35:25 +0000 (-0300) Subject: [media] exynos4-is: Initialize the ISP subdev sd->owner field X-Git-Tag: firefly_0821_release~176^2~3573^2~1359 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c1cd2b96e2475437be1f1cd4ec757ef814228531;p=firefly-linux-kernel-4.4.55.git [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 Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/exynos4-is/fimc-isp.c b/drivers/media/platform/exynos4-is/fimc-isp.c index cf520a7d7f71..d2e6cba3566d 100644 --- a/drivers/media/platform/exynos4-is/fimc-isp.c +++ b/drivers/media/platform/exynos4-is/fimc-isp.c @@ -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");