Commit 10d79b99 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

[media] v4l: vsp1: Initialize media device bus_info field

Fill bus_info with the VSP1 platform device name
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 43054ecc
...@@ -134,6 +134,8 @@ static int vsp1_create_entities(struct vsp1_device *vsp1) ...@@ -134,6 +134,8 @@ static int vsp1_create_entities(struct vsp1_device *vsp1)
mdev->dev = vsp1->dev; mdev->dev = vsp1->dev;
strlcpy(mdev->model, "VSP1", sizeof(mdev->model)); strlcpy(mdev->model, "VSP1", sizeof(mdev->model));
snprintf(mdev->bus_info, sizeof(mdev->bus_info), "platform:%s",
dev_name(mdev->dev));
ret = media_device_register(mdev); ret = media_device_register(mdev);
if (ret < 0) { if (ret < 0) {
dev_err(vsp1->dev, "media device registration failed (%d)\n", dev_err(vsp1->dev, "media device registration failed (%d)\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment