i2c: emev2: Handle return value of clk_prepare_enable
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 24 May 2017 14:01:06 +0000 (19:31 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 19 Jun 2017 20:18:55 +0000 (22:18 +0200)
commitf64622167f4aa5124fed264d481509829d34e126
tree403db2fa26421ef7892566a33d92a7165384822f
parent04606ccc84e3c799ede8ad19fe0409c5a4892cc4
i2c: emev2: Handle return value of clk_prepare_enable

clk_prepare_enable() can fail here and we must check its return value.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-emev2.c