mirror of https://gitee.com/openkylin/linux.git
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:
parent
9379fd547e
commit
85d0b7809b
|
@ -654,7 +654,9 @@ EXPORT_SYMBOL_GPL(ipu_di_init_sync_panel);
|
|||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue