Messages in this thread Patch in this message | | | From | Coiby Xu <> | Subject | [PATCH 12/15] iio: imu: kmx61: remove unnecessary CONFIG_PM_SLEEP | Date | Thu, 29 Oct 2020 15:49:07 +0800 |
| |
SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG.
Signed-off-by: Coiby Xu <coiby.xu@gmail.com> --- drivers/iio/imu/kmx61.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c index 61885e99d3fc..3b3d44ea8d24 100644 --- a/drivers/iio/imu/kmx61.c +++ b/drivers/iio/imu/kmx61.c @@ -1448,7 +1448,6 @@ static int kmx61_remove(struct i2c_client *client) return 0; } -#ifdef CONFIG_PM_SLEEP static int kmx61_suspend(struct device *dev) { int ret; @@ -1474,7 +1473,6 @@ static int kmx61_resume(struct device *dev) return kmx61_set_mode(data, stby, KMX61_ACC | KMX61_MAG, true); } -#endif #ifdef CONFIG_PM static int kmx61_runtime_suspend(struct device *dev) -- 2.28.0
| |