summaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-async.h
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2024-03-13 13:57:50 +0000
committerMauro Carvalho Chehab <mchehab@kernel.org>2024-04-26 11:31:19 +0100
commit8a718752f5c339137c5b05e54f116cd26d5a4143 (patch)
tree9d4efc4c609fc4f8b2429c380e245d8e823acfe8 /include/media/v4l2-async.h
parentaa7b148855e8265c4f72ae0305842efdda72680b (diff)
downloadlinux-stable-8a718752f5c339137c5b05e54f116cd26d5a4143.tar.gz
linux-stable-8a718752f5c339137c5b05e54f116cd26d5a4143.tar.bz2
linux-stable-8a718752f5c339137c5b05e54f116cd26d5a4143.zip
media: v4l: async: Set owner for async sub-devices
Set the owner field of the async sub-devices by making v4l2_async_register_subdev() a macro and obtaining THIS_MODULE that way. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'include/media/v4l2-async.h')
-rw-r--r--include/media/v4l2-async.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/v4l2-async.h b/include/media/v4l2-async.h
index 9bd326d31181..f26c323e9c96 100644
--- a/include/media/v4l2-async.h
+++ b/include/media/v4l2-async.h
@@ -310,7 +310,9 @@ void v4l2_async_nf_cleanup(struct v4l2_async_notifier *notifier);
*
* @sd: pointer to &struct v4l2_subdev
*/
-int v4l2_async_register_subdev(struct v4l2_subdev *sd);
+#define v4l2_async_register_subdev(sd) \
+ __v4l2_async_register_subdev(sd, THIS_MODULE)
+int __v4l2_async_register_subdev(struct v4l2_subdev *sd, struct module *module);
/**
* v4l2_async_register_subdev_sensor - registers a sensor sub-device to the