mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[media] v4l: vsp1: Initialize media device bus_info field
Fill bus_info with the VSP1 platform device name Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
43054ecced
commit
10d79b995b
1 changed files with 2 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue