diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-08-18 21:40:02 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-19 15:38:02 -0700 |
commit | 85d0b7809b912b566c3d19c5c96e044c0698ce2d (patch) | |
tree | 7f96b4157bbaa34cf262b55a8fed075d4decae90 /drivers/staging/imx-drm | |
parent | 9379fd547ea81378791433fd8de44eda788d62d6 (diff) | |
download | linux-85d0b7809b912b566c3d19c5c96e044c0698ce2d.tar.bz2 |
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>
Diffstat (limited to 'drivers/staging/imx-drm')
-rw-r--r-- | drivers/staging/imx-drm/ipu-v3/ipu-di.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/imx-drm/ipu-v3/ipu-di.c b/drivers/staging/imx-drm/ipu-v3/ipu-di.c index 0b6806e2069c..948a49b289ef 100644 --- a/drivers/staging/imx-drm/ipu-v3/ipu-di.c +++ b/drivers/staging/imx-drm/ipu-v3/ipu-di.c @@ -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); |