On 09/11/13 10:32, Sachin Kamat wrote: > ade7854_probe can fail. Return the value obtained from it > instead of 0 (success). > > Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx> > Cc: Barry Song <21cnbao@xxxxxxxxx> Applied to the the fixes-togreg branch of iio.git Thanks > --- > drivers/staging/iio/meter/ade7854-spi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/iio/meter/ade7854-spi.c b/drivers/staging/iio/meter/ade7854-spi.c > index a802cf2..4c6d204 100644 > --- a/drivers/staging/iio/meter/ade7854-spi.c > +++ b/drivers/staging/iio/meter/ade7854-spi.c > @@ -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) > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html