i2c: tegra: If fifo flush fails return error
authorShardar Shariff Md <smohammed@nvidia.com>
Wed, 31 Aug 2016 13:28:41 +0000 (18:58 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 8 Sep 2016 20:33:19 +0000 (22:33 +0200)
commit2148c01ccea9203a153eadadf068c1be5a935495
treed4ec3183f0f391590e185922824a8dbdf398c8de
parent685143a1598b36227250f6c0a90ec234218f58ff
i2c: tegra: If fifo flush fails return error

During i2c controller initialization, when fifo flush fails return error
instead of returning the error during exit.

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