aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2008-07-14 16:38:20 -0400
committerJean Delvare <khali@mahadeva.delvare>2008-07-14 16:38:20 -0400
commitd868caa177d4487ce1935926498f542a8f67c1cf (patch)
tree6eec7b847a94957d123591b171e836606833392a /drivers
parentcc99ff70c7ad36e01db545a81a8594474964f918 (diff)
i2c-davinci: Move dev_dbg statement for more output
Previously the dev_dbg only printed if no error. Printing also on an error is more useful Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Signed-off-by: Kevin Hilman <khilman@mvista.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/busses/i2c-davinci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c
index 7fdbca17d4a8..85097fdc75e4 100644
--- a/drivers/i2c/busses/i2c-davinci.c
+++ b/drivers/i2c/busses/i2c-davinci.c
@@ -345,12 +345,11 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
345 345
346 for (i = 0; i < num; i++) { 346 for (i = 0; i < num; i++) {
347 ret = i2c_davinci_xfer_msg(adap, &msgs[i], (i == (num - 1))); 347 ret = i2c_davinci_xfer_msg(adap, &msgs[i], (i == (num - 1)));
348 dev_dbg(dev->dev, "%s [%d/%d] ret: %d\n", __func__, i + 1, num,
349 ret);
348 if (ret < 0) 350 if (ret < 0)
349 return ret; 351 return ret;
350 } 352 }
351
352 dev_dbg(dev->dev, "%s:%d ret: %d\n", __func__, __LINE__, ret);
353
354 return num; 353 return num;
355} 354}
356 355