drivers: crypto: 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:24:51 +02:00 committed by Anas Nashif
parent f9928479a1
commit 20e6048a49
5 changed files with 5 additions and 5 deletions

View File

@ -899,6 +899,6 @@ static struct crypto_driver_api crypto_enc_funcs = {
struct ataes132a_device_data ataes132a_data;
DEVICE_DEFINE(ataes132a, CONFIG_CRYPTO_ATAES132A_DRV_NAME, ataes132a_init,
device_pm_control_nop, &ataes132a_data, &ataes132a_config,
NULL, &ataes132a_data, &ataes132a_config,
POST_KERNEL, CONFIG_CRYPTO_INIT_PRIORITY,
(void *)&crypto_enc_funcs);

View File

@ -469,6 +469,6 @@ static struct crypto_driver_api mtls_crypto_funcs = {
};
DEVICE_DEFINE(crypto_mtls, CONFIG_CRYPTO_MBEDTLS_SHIM_DRV_NAME,
&mtls_shim_init, device_pm_control_nop, NULL, NULL,
&mtls_shim_init, NULL, NULL, NULL,
POST_KERNEL, CONFIG_CRYPTO_INIT_PRIORITY,
(void *)&mtls_crypto_funcs);

View File

@ -139,7 +139,7 @@ static const struct crypto_driver_api crypto_enc_funcs = {
.query_hw_caps = nrf_ecb_query_caps,
};
DEVICE_DT_INST_DEFINE(0, nrf_ecb_driver_init, device_pm_control_nop,
DEVICE_DT_INST_DEFINE(0, nrf_ecb_driver_init, NULL,
NULL, NULL,
POST_KERNEL, CONFIG_CRYPTO_INIT_PRIORITY,
&crypto_enc_funcs);

View File

@ -463,7 +463,7 @@ static struct crypto_stm32_config crypto_stm32_dev_config = {
}
};
DEVICE_DT_INST_DEFINE(0, crypto_stm32_init, device_pm_control_nop,
DEVICE_DT_INST_DEFINE(0, crypto_stm32_init, NULL,
&crypto_stm32_dev_data,
&crypto_stm32_dev_config, POST_KERNEL,
CONFIG_CRYPTO_INIT_PRIORITY, (void *)&crypto_enc_funcs);

View File

@ -322,6 +322,6 @@ static struct crypto_driver_api crypto_enc_funcs = {
};
DEVICE_DEFINE(crypto_tinycrypt, CONFIG_CRYPTO_TINYCRYPT_SHIM_DRV_NAME,
&tc_shim_init, device_pm_control_nop, NULL, NULL,
&tc_shim_init, NULL, NULL, NULL,
POST_KERNEL, CONFIG_CRYPTO_INIT_PRIORITY,
(void *)&crypto_enc_funcs);