diff options
author | Sakari Ailus <[email protected]> | 2024-05-30 15:45:09 +0300 |
---|---|---|
committer | Hans Verkuil <[email protected]> | 2024-06-15 11:51:23 +0200 |
commit | 62028aa0b1bee4394ff683bcab692305143d8903 (patch) | |
tree | ea519ff5828f5d081c7bcb0f15de0de5b71d3553 | |
parent | 83a7eefedc9b56fe7bfeff13b6c7356688ffa670 (diff) |
media: ipu6: Use the ISYS auxdev device as the V4L2 device's device
The V4L2 device has a struct device field used for a number of purposes,
one of which determining whether a created sub-device needs to increment
the module's use count to avoid unloading the module. Thus the owner field
in this case must refer to the ipu6-isys module, corresponding to the
auxdev of the IPU6 ISYS.
Fixes: f50c4ca0a820 ("media: intel/ipu6: add the main input system driver")
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
-rw-r--r-- | drivers/media/pci/intel/ipu6/ipu6-isys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/intel/ipu6/ipu6-isys.c b/drivers/media/pci/intel/ipu6/ipu6-isys.c index 8b9b77719bb1..c4aff2e2009b 100644 --- a/drivers/media/pci/intel/ipu6/ipu6-isys.c +++ b/drivers/media/pci/intel/ipu6/ipu6-isys.c @@ -799,7 +799,7 @@ static int isys_register_devices(struct ipu6_isys *isys) isys->v4l2_dev.mdev = &isys->media_dev; isys->v4l2_dev.ctrl_handler = NULL; - ret = v4l2_device_register(&pdev->dev, &isys->v4l2_dev); + ret = v4l2_device_register(dev, &isys->v4l2_dev); if (ret < 0) goto out_media_device_unregister; |