media: imx: imx-mipi-csis: Simplify mipi_csis_s_stream()
authorJacopo Mondi <jacopo@jmondi.org>
Mon, 14 Mar 2022 10:39:37 +0000 (10:39 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 08:05:56 +0000 (09:05 +0100)
commitdf4167d9c5af4d07cab71bde3a88f35c57dd319f
treec9f605de512544615b7ecd0dd41af25392f1323f
parentc22afddcf7c5001c00010c38f67689cf19e5fb65
media: imx: imx-mipi-csis: Simplify mipi_csis_s_stream()

Simplify the mipi_csis_s_stream() function.

This actually fixes a bug, as if calling the subdev's s_stream(1) fails,
mipi_csis_stop_stream() was not called.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/imx-mipi-csis.c