media: imx7-media-csi: Check the return value from clk_prepare_enable()
authorFabio Estevam <festevam@gmail.com>
Sat, 4 May 2019 14:40:26 +0000 (10:40 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 18:19:52 +0000 (14:19 -0400)
commitddfb2982ecc4766932fb62868861d5913c5447e3
tree1cbac7991c2f3921107d83cb95f56c443b23b213
parent964fcacddff4f0fd141a4c9d6fbd996e21cee6eb
media: imx7-media-csi: Check the return value from clk_prepare_enable()

clk_prepare_enable() may fail, so we should better check its return value
and propagate it in the case of error.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Rui Miguel Silva <rmfrfs@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-media-csi.c