1
0
Fork 0

staging: iio: ade7854-spi: Fix return value

ade7854_probe can fail. Return the value obtained from it
instead of 0 (success).

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Barry Song <21cnbao@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
wifi-calibration
Sachin Kamat 2013-09-11 10:32:00 +01:00 committed by Jonathan Cameron
parent 575a6c90c1
commit 40e23ced93
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ static int ade7854_spi_probe(struct spi_device *spi)
if (ret)
iio_device_free(indio_dev);
return 0;
return ret;
}
static int ade7854_spi_remove(struct spi_device *spi)