iio: at91: fix error return code in at91_adc_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 30 Oct 2013 05:20:00 +0000 (05:20 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 2 Nov 2013 12:07:54 +0000 (12:07 +0000)
Fix to return -ENODEV instead of 0 if non-TSMR adc don't
support, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

No differences found