diff options
author | Daniel Baluta <daniel.baluta@intel.com> | 2015-01-09 11:39:30 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-01-20 22:00:19 +0000 |
commit | df1fad80dfa0a7644b525c4a0dd8f2be21f57358 (patch) | |
tree | 010808f59b9862fc5c166eb1fa8bb4d544ae46f1 | |
parent | 0a01db9d64350754f5d714d44dab81cb97a67a81 (diff) |
iio kmx61 / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
depending on CONFIG_PM_RUNTIME may now be changed to depend on
CONFIG_PM.
Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under
drivers/iio/imu/kmx61.c
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/imu/kmx61.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c index b60b22d25615..5cc3692acf37 100644 --- a/drivers/iio/imu/kmx61.c +++ b/drivers/iio/imu/kmx61.c @@ -747,7 +747,7 @@ static int kmx61_setup_any_motion_interrupt(struct kmx61_data *data, */ static int kmx61_set_power_state(struct kmx61_data *data, bool on, u8 device) { -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM int ret; if (device & KMX61_ACC) { @@ -1531,7 +1531,7 @@ static int kmx61_resume(struct device *dev) } #endif -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int kmx61_runtime_suspend(struct device *dev) { struct kmx61_data *data = i2c_get_clientdata(to_i2c_client(dev)); |