mirror of https://gitee.com/openkylin/linux.git
media: vim2m: fill in bus_info in media_device_info
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>
This commit is contained in:
parent
0247c75b19
commit
281ae39b60
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue