summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2025-08-10 04:29:59 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-08-13 09:33:32 +0300
commit78b2c8a6cd2fed89ad98213558531a7db52a0eea (patch)
tree33d3556d0bcf3641087c899decbc83b729a487b3
parentbbe4debfaa6a16f11064d5c40ef6d468dad4398d (diff)
downloadlinux-78b2c8a6cd2fed89ad98213558531a7db52a0eea.tar.xz
media: rcar-vin: Do not set file->private_data
The R-Car VIN driver sets file->private_data to the driver-specific structure, but the following call to v4l2_fh_open() overwrites it with a pointer to the just allocated v4l2_fh. Remove the mis-leading assignment in the driver. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
-rw-r--r--drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c b/drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
index 62eddf3a35fc..079dbaf016c2 100644
--- a/drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
+++ b/drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
@@ -588,8 +588,6 @@ static int rvin_open(struct file *file)
if (ret)
goto err_pm;
- file->private_data = vin;
-
ret = v4l2_fh_open(file);
if (ret)
goto err_unlock;