media: imx7-mipi-csis: Propagate the error if clock enabling fails
authorFabio Estevam <festevam@gmail.com>
Fri, 31 May 2019 17:45:04 +0000 (13:45 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Jun 2019 16:53:38 +0000 (12:53 -0400)
commit2b393f91c651c16d5c09f5c7aa689e58a79df34e
tree834e2356b146fb6c56662565d8159820464e0403
parent3c1b9ac753e99005d7ee0a883d6e5b577ba32aa9
media: imx7-mipi-csis: Propagate the error if clock enabling fails

Currently the return value from clk_bulk_prepare_enable() is checked,
but it is not propagate it in the case of failure.

Fix it and also move the error message to the caller of
mipi_csis_clk_enable().

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx7-mipi-csis.c