i2c: tegra: disable clock before returning error
authorShardar Shariff Md <smohammed@nvidia.com>
Mon, 25 Apr 2016 13:38:36 +0000 (19:08 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 11 May 2016 14:32:26 +0000 (16:32 +0200)
commit21e9efd92bb5e205b6243166b0fd38d3a5be8235
tree03f68e8cf681ffa1fd03592cf466f66981d8fb4a
parent3f30e40b96b085ff25babaa8d6bc0b75c8fb32b2
i2c: tegra: disable clock before returning error

Disable clock before returning error in tegra_i2c_init() as its leaves
i2c clock ON in case of error and never turns off again as it will have
unbalanced clock enable/disable

Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-tegra.c