imx-drm: ipu-di: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 19 Aug 2013 00:40:02 +0000 (21:40 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Aug 2013 22:38:02 +0000 (15:38 -0700)
commit85d0b7809b912b566c3d19c5c96e044c0698ce2d
tree7f96b4157bbaa34cf262b55a8fed075d4decae90
parent9379fd547ea81378791433fd8de44eda788d62d6
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>
drivers/staging/imx-drm/ipu-v3/ipu-di.c