Commit d0c8f6ad authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

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: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent e3401c2d
...@@ -52,7 +52,7 @@ find_async_subdev(struct imx_media_dev *imxmd, ...@@ -52,7 +52,7 @@ find_async_subdev(struct imx_media_dev *imxmd,
return asd; return asd;
break; break;
case V4L2_ASYNC_MATCH_DEVNAME: case V4L2_ASYNC_MATCH_DEVNAME:
if (devname && !strcmp(asd->match.device_name.name, if (devname && !strcmp(asd->match.device_name,
devname)) devname))
return asd; return asd;
break; break;
...@@ -107,7 +107,7 @@ int imx_media_add_async_subdev(struct imx_media_dev *imxmd, ...@@ -107,7 +107,7 @@ int imx_media_add_async_subdev(struct imx_media_dev *imxmd,
asd->match.fwnode = fwnode; asd->match.fwnode = fwnode;
} else { } else {
asd->match_type = V4L2_ASYNC_MATCH_DEVNAME; asd->match_type = V4L2_ASYNC_MATCH_DEVNAME;
asd->match.device_name.name = devname; asd->match.device_name = devname;
imxasd->pdev = pdev; imxasd->pdev = pdev;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment