[media] v4l: vsp1: Initialize media device bus_info field
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 22 Aug 2013 17:11:47 +0000 (14:11 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 28 Aug 2013 08:39:38 +0000 (05:39 -0300)
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>
drivers/media/platform/vsp1/vsp1_drv.c

index ff8cd2d..aa8b9b2 100644 (file)
@@ -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",