i2c: imx: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 4 Dec 2013 22:21:37 +0000 (20:21 -0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 12 Dec 2013 21:48:22 +0000 (22:48 +0100)
commite5bf216a945e7292f8718276372d2b41486bed26
tree69d106bf305787fe3aa7c9cbf70347f54c6fe1a3
parent2212a8529eb06c559256f0cee41c1f14890d54d3
i2c: imx: 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>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c