Staging: iio: Place driver in sleep mode on error
authorCristina Opriceana <cristina.opriceana@gmail.com>
Sun, 22 Mar 2015 18:42:42 +0000 (20:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Mar 2015 21:20:58 +0000 (22:20 +0100)
commite6767051951353d0156efc80f7c7aa87d632d22c
treee6ec4eb2898b9287aaf7a84bb40c803ab0bc6efb
parentdaf56d91a56d41d97fda9f5979657abbd6475140
Staging: iio: Place driver in sleep mode on error

Put device in sleep mode if an error is encountered after
initialization 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/magnetometer/hmc5843_core.c