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)
commit94fccb78414a87f3c4bc7049ff8b6e80156944d9
treed3645903037cb92017e61e920731bc599f01e13a
parent0ad1ea69545b1965be4c93ee03fdc685c6beb23d
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