]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46677b370488ebe90a803fce7e3024bfd928c582
tree834e2356b146fb6c56662565d8159820464e0403
parentba4c6bb1a049915c15f257ae163de64171e00225
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