diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-05-07 12:51:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-05-22 22:14:57 +0100 |
commit | 3b813798aa7030f1beef638c75f8b0008f737a82 (patch) | |
tree | afd9b9ada9534d168a83c2b081000a3f26661073 /lib | |
parent | c80712c793febdf1b13ad0e1c71a051e071b3fd8 (diff) | |
download | linux-3b813798aa7030f1beef638c75f8b0008f737a82.tar.gz linux-3b813798aa7030f1beef638c75f8b0008f737a82.tar.bz2 linux-3b813798aa7030f1beef638c75f8b0008f737a82.zip |
staging:iio:light:tsl2x7x: fix the error handling in tsl2x7x_probe()
Fix to return -EINVAL in the i2c device found error handling
case instead of 0, as done elsewhere in this function.
And also correct the fail1 and fail2 lable to do the right thing.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions