drivers: entropy: 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 10:39:21 +02:00 committed by Anas Nashif
commit 9e2f38d78e
11 changed files with 11 additions and 11 deletions

View file

@ -72,6 +72,6 @@ static const struct entropy_driver_api entropy_esp32_api_funcs = {
};
DEVICE_DT_INST_DEFINE(0,
entropy_esp32_init, device_pm_control_nop, NULL, NULL,
entropy_esp32_init, NULL, NULL, NULL,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&entropy_esp32_api_funcs);

View file

@ -100,7 +100,7 @@ static struct entropy_driver_api entropy_gecko_trng_api_funcs = {
};
DEVICE_DT_INST_DEFINE(0,
entropy_gecko_trng_init, device_pm_control_nop,
entropy_gecko_trng_init, NULL,
NULL, NULL,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&entropy_gecko_trng_api_funcs);

View file

@ -60,6 +60,6 @@ static const struct entropy_driver_api entropy_prbs_api = {
};
DEVICE_DT_INST_DEFINE(0,
entropy_prbs_init, device_pm_control_nop, NULL, NULL,
entropy_prbs_init, NULL, NULL, NULL,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&entropy_prbs_api);

View file

@ -43,7 +43,7 @@ static const struct mcux_entropy_config entropy_mcux_config = {
static int entropy_mcux_rng_init(const struct device *);
DEVICE_DT_INST_DEFINE(0,
entropy_mcux_rng_init, device_pm_control_nop, NULL,
entropy_mcux_rng_init, NULL, NULL,
&entropy_mcux_config,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&entropy_mcux_rng_api_funcs);

View file

@ -60,7 +60,7 @@ static const struct entropy_driver_api entropy_mcux_rnga_api_funcs = {
static int entropy_mcux_rnga_init(const struct device *);
DEVICE_DT_INST_DEFINE(0,
entropy_mcux_rnga_init, device_pm_control_nop, NULL, NULL,
entropy_mcux_rnga_init, NULL, NULL, NULL,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&entropy_mcux_rnga_api_funcs);

View file

@ -43,7 +43,7 @@ static struct mcux_entropy_config entropy_mcux_config = {
static int entropy_mcux_trng_init(const struct device *);
DEVICE_DT_INST_DEFINE(0,
entropy_mcux_trng_init, device_pm_control_nop, NULL,
entropy_mcux_trng_init, NULL, NULL,
&entropy_mcux_config,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&entropy_mcux_trng_api_funcs);

View file

@ -332,7 +332,7 @@ static const struct entropy_driver_api entropy_nrf5_api_funcs = {
};
DEVICE_DT_INST_DEFINE(0,
entropy_nrf5_init, device_pm_control_nop,
entropy_nrf5_init, NULL,
&entropy_nrf5_data, NULL,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&entropy_nrf5_api_funcs);

View file

@ -43,7 +43,7 @@ static struct rv32m1_entropy_config entropy_rv32m1_config = {
static int entropy_rv32m1_trng_init(const struct device *);
DEVICE_DT_INST_DEFINE(0,
entropy_rv32m1_trng_init, device_pm_control_nop,
entropy_rv32m1_trng_init, NULL,
NULL, &entropy_rv32m1_config,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&entropy_rv32m1_trng_api_funcs);

View file

@ -184,7 +184,7 @@ static const struct trng_sam_dev_cfg trng_sam_cfg = {
};
DEVICE_DT_INST_DEFINE(0,
entropy_sam_init, device_pm_control_nop,
entropy_sam_init, NULL,
NULL, &trng_sam_cfg,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&entropy_sam_api);

View file

@ -449,7 +449,7 @@ static const struct entropy_driver_api entropy_stm32_rng_api = {
};
DEVICE_DT_INST_DEFINE(0,
entropy_stm32_rng_init, device_pm_control_nop,
entropy_stm32_rng_init, NULL,
&entropy_stm32_rng_data, &entropy_stm32_rng_config,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&entropy_stm32_rng_api);

View file

@ -76,7 +76,7 @@ static const struct entropy_driver_api entropy_native_posix_api_funcs = {
};
DEVICE_DT_INST_DEFINE(0,
entropy_native_posix_init, device_pm_control_nop,
entropy_native_posix_init, NULL,
NULL, NULL,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&entropy_native_posix_api_funcs);