]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
media: imx-pxp: Check the return value from clk_prepare_enable()
authorFabio Estevam <festevam@gmail.com>
Tue, 6 Nov 2018 10:16:03 +0000 (05:16 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 10:36:58 +0000 (05:36 -0500)
commitefceb765ff1df6d0ce0d024de5fe66bd7bb241da
tree87221aeac051077f2afea5b6d9eec2ed9af6235f
parentc229f5c746657702df9b3980bdafd396ba60ed3c
media: imx-pxp: 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>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/imx-pxp.c