summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-08-22 21:11:47 +0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-08-28 12:39:38 +0400
commit10d79b995be5399be0a59a72859ac4bfdf066299 (patch)
tree0d4bd8f95291fa4ce0707bcbeb94aafb717b0fc6 /drivers/media
parent43054ecced8ae77c805470447d72da4fdc276e02 (diff)
downloadlinux-10d79b995be5399be0a59a72859ac4bfdf066299.tar.xz
[media] v4l: vsp1: Initialize media device bus_info field
Fill bus_info with the VSP1 platform device name Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/vsp1/vsp1_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_drv.c b/drivers/media/platform/vsp1/vsp1_drv.c
index ff8cd2d6be39..aa8b9b288e61 100644
--- a/drivers/media/platform/vsp1/vsp1_drv.c
+++ b/drivers/media/platform/vsp1/vsp1_drv.c
@@ -134,6 +134,8 @@ static int vsp1_create_entities(struct vsp1_device *vsp1)
mdev->dev = vsp1->dev;
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);
if (ret < 0) {
dev_err(vsp1->dev, "media device registration failed (%d)\n",