]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging/imx: fix complete handler
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 29 Sep 2017 21:38:39 +0000 (17:38 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 11 Dec 2017 18:04:26 +0000 (13:04 -0500)
commitbaa9c800a1de4d6f2f00aec13bb1f87080e76867
tree9844b978d50788d36391030271ce5b16a1581dcc
parent583d6a993229e31e19eb27670c1a6e7ae6bdf7cd
media: staging/imx: fix complete handler

The complete handler walks all entities, expecting to find an imx
subdevice for each and every entity.

However, camera drivers such as smiapp can themselves contain multiple
entities, for which there will not be an imx subdevice.  This causes
imx_media_find_subdev_by_sd() to fail, making the imx capture system
unusable with such cameras.

Work around this by killing the error entirely, thereby allowing
the imx capture to be used with such cameras.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/imx/imx-media-dev.c