]> git.baikalelectronics.ru Git - kernel.git/commit
iio: dac: ad7303: fix error return code in ad7303_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 18 Jun 2013 13:08:00 +0000 (14:08 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 29 Jun 2013 09:18:21 +0000 (10:18 +0100)
commitf7c5fb55514b600fe5357b717bdcd9db57272a50
treed3645903037cb92017e61e920731bc599f01e13a
parentd024046b9dc24a5d83094267bfa826b69eb89ac1
iio: dac: ad7303: fix error return code in ad7303_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad7303.c