diff options
| author | Sakari Ailus <[email protected]> | 2024-03-13 14:03:19 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2024-04-26 10:30:43 +0000 |
| commit | aa7b148855e8265c4f72ae0305842efdda72680b (patch) | |
| tree | 870a8d5e88af68ca555f57ceabafac2779a1f053 /drivers/media/v4l2-core/v4l2-async.c | |
| parent | media: i2c: imx219: Use dev_err_probe on probe (diff) | |
| download | kernel-aa7b148855e8265c4f72ae0305842efdda72680b.tar.gz kernel-aa7b148855e8265c4f72ae0305842efdda72680b.zip | |
media: v4l: Set sub-device's owner field to the caller's module
Set a sub-device's owner field to the caller's module, provided as an
argument to the function. v4l2_device_register_subdev() becomes a macro
passing THIS_MODULE to the __v4l2_device_register_subdev() function.
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-async.c')
| -rw-r--r-- | drivers/media/v4l2-core/v4l2-async.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c index 4bb073587817..b28f6811a5f4 100644 --- a/drivers/media/v4l2-core/v4l2-async.c +++ b/drivers/media/v4l2-core/v4l2-async.c @@ -341,7 +341,7 @@ static int v4l2_async_match_notify(struct v4l2_async_notifier *notifier, int ret; if (list_empty(&sd->asc_list)) { - ret = v4l2_device_register_subdev(v4l2_dev, sd); + ret = __v4l2_device_register_subdev(v4l2_dev, sd, sd->owner); if (ret < 0) return ret; registered = true; |
