iio: accel: BMC150: fix issues when CONFIG_PM_RUNTIME is not set
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Fri, 29 Aug 2014 08:38:00 +0000 (09:38 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 30 Aug 2014 10:44:26 +0000 (11:44 +0100)
commitb31b05cf629574d47b324bb52128ed1b199faccd
tree4b4c38824914bcafeac5dfcadb6282d3924fcdb4
parent823615e2de6880de3c8e681333147a09719f6fdb
iio: accel: BMC150: fix issues when CONFIG_PM_RUNTIME is not set

When CONFIG_PM_RUNTIME is not set, the following issues are seen:
 * warning message at compilation time:
    warning: 'bmc150_accel_get_startup_times' defined but not used [-Wunused-function]
 * bmc150_accel_set_power_state() will always fail and reading the
   accelerometer data is impossible;
   This occurs because of the call to pm_runtime_put_autosuspend calls
   __pm_runtime_suspend which returns -ENOSYS.

This commit fixes these.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bmc150-accel.c