From 9e2f38d78ead62bbe0021890af81a9d3e20c759e Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Wed, 28 Apr 2021 10:39:21 +0200 Subject: [PATCH] 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 --- drivers/entropy/entropy_esp32.c | 2 +- drivers/entropy/entropy_gecko_trng.c | 2 +- drivers/entropy/entropy_litex.c | 2 +- drivers/entropy/entropy_mcux_rng.c | 2 +- drivers/entropy/entropy_mcux_rnga.c | 2 +- drivers/entropy/entropy_mcux_trng.c | 2 +- drivers/entropy/entropy_nrf5.c | 2 +- drivers/entropy/entropy_rv32m1_trng.c | 2 +- drivers/entropy/entropy_sam.c | 2 +- drivers/entropy/entropy_stm32.c | 2 +- drivers/entropy/fake_entropy_native_posix.c | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/entropy/entropy_esp32.c b/drivers/entropy/entropy_esp32.c index bd538e0bc8f..ff56a8cd274 100644 --- a/drivers/entropy/entropy_esp32.c +++ b/drivers/entropy/entropy_esp32.c @@ -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); diff --git a/drivers/entropy/entropy_gecko_trng.c b/drivers/entropy/entropy_gecko_trng.c index e3045da7dca..f02fb8a0882 100644 --- a/drivers/entropy/entropy_gecko_trng.c +++ b/drivers/entropy/entropy_gecko_trng.c @@ -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); diff --git a/drivers/entropy/entropy_litex.c b/drivers/entropy/entropy_litex.c index e03fe32a4fa..6c720f7e623 100644 --- a/drivers/entropy/entropy_litex.c +++ b/drivers/entropy/entropy_litex.c @@ -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); diff --git a/drivers/entropy/entropy_mcux_rng.c b/drivers/entropy/entropy_mcux_rng.c index f3b022d7d1c..ab9eb7b7269 100644 --- a/drivers/entropy/entropy_mcux_rng.c +++ b/drivers/entropy/entropy_mcux_rng.c @@ -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); diff --git a/drivers/entropy/entropy_mcux_rnga.c b/drivers/entropy/entropy_mcux_rnga.c index 02d2282153e..2df9264ce1c 100644 --- a/drivers/entropy/entropy_mcux_rnga.c +++ b/drivers/entropy/entropy_mcux_rnga.c @@ -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); diff --git a/drivers/entropy/entropy_mcux_trng.c b/drivers/entropy/entropy_mcux_trng.c index ff24d448437..d3cfb2d663f 100644 --- a/drivers/entropy/entropy_mcux_trng.c +++ b/drivers/entropy/entropy_mcux_trng.c @@ -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); diff --git a/drivers/entropy/entropy_nrf5.c b/drivers/entropy/entropy_nrf5.c index 122bb441ae8..dad76cdbe07 100644 --- a/drivers/entropy/entropy_nrf5.c +++ b/drivers/entropy/entropy_nrf5.c @@ -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); diff --git a/drivers/entropy/entropy_rv32m1_trng.c b/drivers/entropy/entropy_rv32m1_trng.c index 5ce1578168d..2d3dcf6f8f8 100644 --- a/drivers/entropy/entropy_rv32m1_trng.c +++ b/drivers/entropy/entropy_rv32m1_trng.c @@ -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); diff --git a/drivers/entropy/entropy_sam.c b/drivers/entropy/entropy_sam.c index c70c32edfa2..48f276a294f 100644 --- a/drivers/entropy/entropy_sam.c +++ b/drivers/entropy/entropy_sam.c @@ -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); diff --git a/drivers/entropy/entropy_stm32.c b/drivers/entropy/entropy_stm32.c index 7b6ee834e36..4c9855d0f39 100644 --- a/drivers/entropy/entropy_stm32.c +++ b/drivers/entropy/entropy_stm32.c @@ -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); diff --git a/drivers/entropy/fake_entropy_native_posix.c b/drivers/entropy/fake_entropy_native_posix.c index 6c17898cf77..3f3cdeed7d5 100644 --- a/drivers/entropy/fake_entropy_native_posix.c +++ b/drivers/entropy/fake_entropy_native_posix.c @@ -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);