From: Laurent Pinchart Date: Thu, 22 Aug 2013 17:11:47 +0000 (-0300) Subject: [media] v4l: vsp1: Initialize media device bus_info field X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=10d79b995be5399be0a59a72859ac4bfdf066299;p=openwrt%2Fstaging%2Fblogic.git [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 --- 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",