i2c-nomadik: corrrect returned error numbers
authorVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Fri, 13 May 2011 10:29:28 +0000 (12:29 +0200)
committerBen Dooks <ben-linux@fluff.org>
Tue, 24 May 2011 23:20:26 +0000 (00:20 +0100)
commit99381bec0a569a69345148cb1ac74c2caa43a227
tree1f88159771942d1a71a1d77e2e859874c18c1906
parent2320f504d3c87b814abf37f224ab68d52d2a512c
i2c-nomadik: corrrect returned error numbers

The code was returning bad error numbers or just -1 in some cases.

Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-nomadik.c