diff mbox series

vim2m: fill in bus_info in media_device_info

Message ID 4cc870bd01f340cba7224579a3a6be94@XCH-ALN-012.cisco.com (mailing list archive)
State New, archived
Headers show
Series vim2m: fill in bus_info in media_device_info | expand

Commit Message

Hans Verkuil (hansverk) Jan. 30, 2019, 1:36 p.m. UTC
It is good practice to fill in the bus_info.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
---
diff mbox series

Patch

diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c
index 0e7814b2327e..4055aabf2a5e 100644
--- a/drivers/media/platform/vim2m.c
+++ b/drivers/media/platform/vim2m.c
@@ -1155,6 +1155,7 @@  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;