iio: magnetometer: mag3110: Place driver on standby on error
authorCristina Opriceana <cristina.opriceana@gmail.com>
Wed, 1 Apr 2015 11:01:11 +0000 (14:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2015 15:24:09 +0000 (17:24 +0200)
commit66687e6aed4ab25ab5aac52ed94b277c4db2093f
tree1787324b2f19e9b3f4899f4397dd89241eade79c
parentaa5587f3cb9fde2db852b5549ee561198aa95748
iio: magnetometer: mag3110: Place driver on standby on error

Place driver on standby mode on error in order to prevent wasting
power. Move standby function above to be seen by the new call.

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