Skip to contentSkip to conversation

media: core: v4l2-dev: use video_put instead of, put_device

PATCH New Hans Verkuil 1 participant 1 message Jun 16 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/media/v4l2-core/v4l2-dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/v4l2-core/v4l2-dev.c +1 -1
index 5516b2bbb08f..bcd5f066a1f8 100644
@@ -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