Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)