imx-drm: ipu-di: Check the return value from clk_prepare_enable()

clk_prepare_enable() may fail, so let's check its return value and propagate it
in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Fabio Estevam 2013-08-18 21:40:02 -03:00 committed by Greg Kroah-Hartman
parent 9379fd547e
commit 85d0b7809b

View file

@ -654,7 +654,9 @@ EXPORT_SYMBOL_GPL(ipu_di_init_sync_panel);
int ipu_di_enable(struct ipu_di *di) int ipu_di_enable(struct ipu_di *di)
{ {
clk_prepare_enable(di->clk_di_pixel); int ret = clk_prepare_enable(di->clk_di_pixel);
if (ret)
return ret;
ipu_module_enable(di->ipu, di->module); ipu_module_enable(di->ipu, di->module);