drivers: lora: remove usage of device_pm_control_nop

device_pm_control_nop is now deprecated in favour of NULL.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-04-28 11:16:35 +02:00 committed by Anas Nashif
commit 496cdac71d
2 changed files with 2 additions and 2 deletions

View file

@ -530,6 +530,6 @@ static const struct lora_driver_api sx126x_lora_api = {
.test_cw = sx12xx_lora_test_cw, .test_cw = sx12xx_lora_test_cw,
}; };
DEVICE_DT_INST_DEFINE(0, &sx126x_lora_init, device_pm_control_nop, NULL, DEVICE_DT_INST_DEFINE(0, &sx126x_lora_init, NULL, NULL,
NULL, POST_KERNEL, CONFIG_LORA_INIT_PRIORITY, NULL, POST_KERNEL, CONFIG_LORA_INIT_PRIORITY,
&sx126x_lora_api); &sx126x_lora_api);

View file

@ -646,6 +646,6 @@ static const struct lora_driver_api sx127x_lora_api = {
.test_cw = sx12xx_lora_test_cw, .test_cw = sx12xx_lora_test_cw,
}; };
DEVICE_DT_INST_DEFINE(0, &sx127x_lora_init, device_pm_control_nop, NULL, DEVICE_DT_INST_DEFINE(0, &sx127x_lora_init, NULL, NULL,
NULL, POST_KERNEL, CONFIG_LORA_INIT_PRIORITY, NULL, POST_KERNEL, CONFIG_LORA_INIT_PRIORITY,
&sx127x_lora_api); &sx127x_lora_api);