media: vim2m: fill in bus_info in media_device_info
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 30 Jan 2019 13:39:17 +0000 (08:39 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 7 Feb 2019 16:50:36 +0000 (11:50 -0500)
It is good practice to fill in the bus_info.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vim2m.c

index e31c14c..bfa1a2a 100644 (file)
@@ -1159,6 +1159,8 @@ static int vim2m_probe(struct platform_device *pdev)
 #ifdef CONFIG_MEDIA_CONTROLLER
        dev->mdev.dev = &pdev->dev;
        strscpy(dev->mdev.model, "vim2m", sizeof(dev->mdev.model));
+       strscpy(dev->mdev.bus_info, "platform:vim2m",
+               sizeof(dev->mdev.bus_info));
        media_device_init(&dev->mdev);
        dev->mdev.ops = &m2m_media_ops;
        dev->v4l2_dev.mdev = &dev->mdev;