summaryrefslogtreecommitdiff
path: root/drivers/staging/media/imx/imx-media-dev.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-29 14:55:41 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-29 14:55:41 -0500
commitd0c8f6ad8b381dd572576ac50b9696d4d31142bb (patch)
treeb09622a7a2fbfe99b8487a1d44a11eb7f393ce15 /drivers/staging/media/imx/imx-media-dev.c
parente3401c2d3804ec67f90ac20ce684171a02c8bf3e (diff)
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>
Diffstat (limited to 'drivers/staging/media/imx/imx-media-dev.c')
-rw-r--r--drivers/staging/media/imx/imx-media-dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/imx/imx-media-dev.c b/drivers/staging/media/imx/imx-media-dev.c
index f7ed5f506fa9..289d775c4820 100644
--- a/drivers/staging/media/imx/imx-media-dev.c
+++ b/drivers/staging/media/imx/imx-media-dev.c
@@ -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;
}