Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sachin Kamat and committed by
Jonathan Cameron
40e23ced 575a6c90

+1 -1
+1 -1
drivers/staging/iio/meter/ade7854-spi.c
··· 299 299 if (ret) 300 300 iio_device_free(indio_dev); 301 301 302 - return 0; 302 + return ret; 303 303 } 304 304 305 305 static int ade7854_spi_remove(struct spi_device *spi)