Skip to content

Commit

Permalink
staging: iio: ade7854-spi: Fix return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Jonathan Cameron committed Sep 18, 2013
1 parent 575a6c9 commit 40e23ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/meter/ade7854-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 40e23ce

Please sign in to comment.