diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-08-22 19:11:47 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-08-28 10:39:38 +0200 |
commit | 10d79b995be5399be0a59a72859ac4bfdf066299 (patch) | |
tree | 0d4bd8f95291fa4ce0707bcbeb94aafb717b0fc6 | |
parent | [media] davinci: vpif_capture: fix error return code in vpif_probe() (diff) | |
download | linux-10d79b995be5399be0a59a72859ac4bfdf066299.tar.xz linux-10d79b995be5399be0a59a72859ac4bfdf066299.zip |
[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>
-rw-r--r-- | drivers/media/platform/vsp1/vsp1_drv.c | 2 |
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", |