mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
media: rzg2l-cru: Do not set file->private_data
The RZ G2/L CRU 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> Tested-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> Reviewed-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
78b2c8a6cd
commit
ff9c50a4a9
|
|
@ -1078,7 +1078,6 @@ static int rzg2l_cru_open(struct file *file)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
file->private_data = cru;
|
||||
ret = v4l2_fh_open(file);
|
||||
if (ret)
|
||||
goto err_unlock;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user