iio: accel: STK8BA50: suspend sensor on init errors
authorTiberiu Breana <tiberiu.a.breana@intel.com>
Fri, 19 Jun 2015 14:56:37 +0000 (17:56 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 21 Jun 2015 12:53:03 +0000 (13:53 +0100)
commitdb42a9be9f05516255e749a5ee4c1e5d07e0a73b
tree9cf74fcba4151ceb1806c26cfc0bfd5249765754
parent208335138001015fd7c5c986b39e05fffad1c528
iio: accel: STK8BA50: suspend sensor on init errors

Put chip in 'suspend' mode in case something goes wrong
during probe.

Signed-off-by: Tiberiu Breana <tiberiu.a.breana@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/stk8ba50.c