]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:12:30 +0000 (09:12 +0200)
commit5b41a2ede7b1bfd760156432ef04a954b5055ede
treece062083bcb62f6bf65c91194c5f9376fbed7f5c
parent37243454d0be784b1e4f51b1e194e2937f531eec
media: imx7-mipi-csis: Propagate the error if clock enabling fails

[ Upstream commit 2b393f91c651c16d5c09f5c7aa689e58a79df34e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/imx/imx7-mipi-csis.c