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:
parent
adae515d8d
commit
24bd45b287
4 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue