diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2014-03-28 10:35:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 07:50:25 -0400 |
commit | 60b31b72d84b89f638f2d7c93ce5cb6fd53a66e4 (patch) | |
tree | 9a91bb17c034f3dc8babc828b0fe42038fb9b35b | |
parent | 58e43d90b9cb75b4dd42ba1481d83011fa7412df (diff) |
[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 <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/i2c/smiapp/smiapp-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index 632bd9efdc97..62acb10630f9 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) | |||
2565 | 2565 | ||
2566 | this->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; | 2566 | this->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; |
2567 | this->sd.internal_ops = &smiapp_internal_ops; | 2567 | this->sd.internal_ops = &smiapp_internal_ops; |
2568 | this->sd.owner = NULL; | 2568 | this->sd.owner = THIS_MODULE; |
2569 | v4l2_set_subdevdata(&this->sd, client); | 2569 | v4l2_set_subdevdata(&this->sd, client); |
2570 | 2570 | ||
2571 | rval = media_entity_init(&this->sd.entity, | 2571 | rval = media_entity_init(&this->sd.entity, |