Skip to content

Commit

Permalink
[media] smiapp: Set sub-device owner
Browse files Browse the repository at this point in the history
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 <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed Sep 3, 2014
1 parent 58e43d9 commit 60b31b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/smiapp/smiapp-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 60b31b7

Please sign in to comment.