]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:light:tsl2x7x: fix the error handling in tsl2x7x_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 May 2013 11:51:00 +0000 (12:51 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 22 May 2013 21:14:57 +0000 (22:14 +0100)
commit9136700ce501afc39f41042f4cc0c8fb9a56a672
treeafd9b9ada9534d168a83c2b081000a3f26661073
parentca02657823e47a70a689da8acc6bd9e94b925ae3
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>
drivers/staging/iio/light/tsl2x7x_core.c