staging: iio: ade7854-spi: Fix return value
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 11 Sep 2013 09:32:00 +0000 (10:32 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 18 Sep 2013 18:43:33 +0000 (19:43 +0100)
commit40e23ced937aab63b6191ce0e8083bfe09847423
tree9a825f8eacdfc6233badf051bc00f45f94d7d350
parent575a6c90c190efabc829a8a9109f5036edaf1a82
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>
drivers/staging/iio/meter/ade7854-spi.c