From: Sakari Ailus Date: Fri, 28 Mar 2014 14:35:12 +0000 (-0300) Subject: [media] smiapp: Set sub-device owner X-Git-Tag: v4.9.8~5640^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60b31b72d84b89f638f2d7c93ce5cb6fd53a66e4;p=platform%2Fkernel%2Flinux-rpi3.git [media] smiapp: Set sub-device owner The smiapp driver is the owner of the sub-devices exposed by the smiapp driver. This prevents unloading the module whilst it's in use. Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index 632bd9e..62acb10 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c @@ -2565,7 +2565,7 @@ static int smiapp_registered(struct v4l2_subdev *subdev) this->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; this->sd.internal_ops = &smiapp_internal_ops; - this->sd.owner = NULL; + this->sd.owner = THIS_MODULE; v4l2_set_subdevdata(&this->sd, client); rval = media_entity_init(&this->sd.entity,