From 10d79b995be5399be0a59a72859ac4bfdf066299 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 22 Aug 2013 14:11:47 -0300 Subject: [PATCH] [media] v4l: vsp1: Initialize media device bus_info field Fill bus_info with the VSP1 platform device name Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/vsp1/vsp1_drv.c | 2 ++ 1 file changed, 2 insertions(+) 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", -- 2.30.2