Skip to content

Commit 62028aa

Browse files
Sakari AilusHans Verkuil
authored andcommitted
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: f50c4ca ("media: intel/ipu6: add the main input system driver") Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
1 parent 83a7eef commit 62028aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/pci/intel/ipu6/ipu6-isys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ static int isys_register_devices(struct ipu6_isys *isys)
799799
isys->v4l2_dev.mdev = &isys->media_dev;
800800
isys->v4l2_dev.ctrl_handler = NULL;
801801

802-
ret = v4l2_device_register(&pdev->dev, &isys->v4l2_dev);
802+
ret = v4l2_device_register(dev, &isys->v4l2_dev);
803803
if (ret < 0)
804804
goto out_media_device_unregister;
805805

0 commit comments

Comments
 (0)