i2c: tegra: remove warning dump if timeout happen in transfer
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 14 Feb 2013 12:43:33 +0000 (18:13 +0530)
committerWolfram Sang <wolfram@the-dreams.de>
Fri, 15 Feb 2013 20:08:29 +0000 (21:08 +0100)
If timeout error occurs in the i2c transfer then it was dumping warning
of call stack.

Remove the warning dump as there is may be possibility that some slave
devices are busy and not responding the i2c communication.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
drivers/i2c/busses/i2c-tegra.c

index 2dadb964c4649850c6cc619c5b93f6293bc1541b..e58a58d7231c6f93d1a2452681358cdb7ce506a6 100644 (file)
@@ -588,7 +588,7 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev,
        ret = wait_for_completion_timeout(&i2c_dev->msg_complete, TEGRA_I2C_TIMEOUT);
        tegra_i2c_mask_irq(i2c_dev, int_mask);
 
-       if (WARN_ON(ret == 0)) {
+       if (ret == 0) {
                dev_err(i2c_dev->dev, "i2c transfer timed out\n");
 
                tegra_i2c_init(i2c_dev);