]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Staging: iio: Add error check on iio_register_device()
authorCristina Opriceana <cristina.opriceana@gmail.com>
Sun, 29 Mar 2015 13:14:39 +0000 (16:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2015 15:23:20 +0000 (17:23 +0200)
commitb72eb70209a0aac7651166d3f610ffb57b4c6e5f
tree31b9939054be143d208b8dc591316427730551a0
parent675732707f29d6714bc756a75e70a6ec2b16a478
Staging: iio: Add error check on iio_register_device()

This patch checks if an error occurred on probe and stops the
device in order to avoid wasting power.

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/meter/ade7754.c