Commit 40e23ced authored by Sachin Kamat's avatar Sachin Kamat Committed by Jonathan Cameron

staging: iio: ade7854-spi: Fix return value

ade7854_probe can fail. Return the value obtained from it
instead of 0 (success).
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Barry Song <21cnbao@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 575a6c90
...@@ -299,7 +299,7 @@ static int ade7854_spi_probe(struct spi_device *spi) ...@@ -299,7 +299,7 @@ static int ade7854_spi_probe(struct spi_device *spi)
if (ret) if (ret)
iio_device_free(indio_dev); iio_device_free(indio_dev);
return 0; return ret;
} }
static int ade7854_spi_remove(struct spi_device *spi) static int ade7854_spi_remove(struct spi_device *spi)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment