media: core: v4l2-dev: use video_put instead of, put_device
PATCH 1/1 media: core: v4l2-dev: use video_put instead of, put_device
There are nice inline helpers video_get/put, but in one place put_device was used instead of video_put.
Fix this so we are consistent.
Signed-off-by Hans Verkuil <[email protected]>
--- drivers/media/v4l2-core/v4l2-dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/v4l2-core/v4l2-dev.c +1 -1
@@ -1082,7 +1082,7 @@ int __video_register_device(struct video_device *vdev,if (ret <0 ) {mutex_unlock (&videodev_lock);pr_err ("%s: device_register failed\n" , __func__); -put_device (&vdev->dev); +video_put (vdev);return ret; }
Signature · 1 line
2.53.0