iio: accel: kxcjk-1013: always power on device in resume
authorIrina Tirdea <irina.tirdea@intel.com>
Fri, 5 Dec 2014 22:18:07 +0000 (00:18 +0200)
committerJonathan Cameron <jic23@kernel.org>
Fri, 12 Dec 2014 12:28:26 +0000 (12:28 +0000)
commitd3653d09891b57f2e8089b8908f24a2e97576a49
treebc30bdb7d0ecacb3d51a323ac7bf097f7430e67c
parent3a2ecc3d2dce6e051b6afc319bb380c829e4e4fd
iio: accel: kxcjk-1013: always power on device in resume

When the system resumes, it will first call system resume and
then runtime suspend (if CONFIG_RUNTIME_PM is enabled).
There is no need to conditionally power on the device in
system resume, so always power it on and leave runtime
suspend to power it off if needed.

Suggested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/kxcjk-1013.c