From: Irina Tirdea Date: Fri, 5 Dec 2014 22:18:08 +0000 (+0200) Subject: iio: accel: kxcjk-1013: only set power state if CONFIG_PM is defined X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~245^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c75b8dc84fd28511224a4cd2bfa791bb56a06172;p=pandora-kernel.git iio: accel: kxcjk-1013: only set power state if CONFIG_PM is defined When CONFIG_PM is not defined and the driver tries to power off the device, kxcjk1013_set_power_state will call pm_runtime_put_autosuspend, which is not implemented (wil return -ENOSYS). Only call pm_runtime calls to change power state when CONFIG_PM is defined. Signed-off-by: Irina Tirdea Reviewed-by: Srinivas Pandruvada Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed