mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
media: imx: fix breakages when compiling for arm
As reported: drivers/staging/media/imx/imx-media-dev.c: In function 'find_async_subdev': >> drivers/staging/media/imx/imx-media-dev.c:55:49: error: request for member 'name' in something not a structure or union if (devname && !strcmp(asd->match.device_name.name, ^ drivers/staging/media/imx/imx-media-dev.c: In function 'imx_media_add_async_subdev': drivers/staging/media/imx/imx-media-dev.c:110:25: error: request for member 'name' in something not a structure or union asd->match.device_name.name = devname; ^ Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
e3401c2d38
commit
d0c8f6ad8b
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ find_async_subdev(struct imx_media_dev *imxmd,
|
|||
return asd;
|
||||
break;
|
||||
case V4L2_ASYNC_MATCH_DEVNAME:
|
||||
if (devname && !strcmp(asd->match.device_name.name,
|
||||
if (devname && !strcmp(asd->match.device_name,
|
||||
devname))
|
||||
return asd;
|
||||
break;
|
||||
|
@ -107,7 +107,7 @@ int imx_media_add_async_subdev(struct imx_media_dev *imxmd,
|
|||
asd->match.fwnode = fwnode;
|
||||
} else {
|
||||
asd->match_type = V4L2_ASYNC_MATCH_DEVNAME;
|
||||
asd->match.device_name.name = devname;
|
||||
asd->match.device_name = devname;
|
||||
imxasd->pdev = pdev;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue