pm: do not use deprecate Kconfig

CONFIG_DEVICE_POWER_MANAGEMENT is deprecated, use CONFIG_PM_DEVICE
instead.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-06-04 11:36:54 -04:00 committed by Kumar Gala
commit 24bd45b287
4 changed files with 11 additions and 11 deletions

View file

@ -91,7 +91,7 @@ int bmp388_trigger_set(
{
struct bmp388_data *data = DEV_DATA(dev);
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
#ifdef CONFIG_PM_DEVICE
if (data->device_power_state != PM_DEVICE_STATE_ACTIVE) {
return -EBUSY;
}