drivers: crypto: Convert drivers to new DT device macros

Convert crypto drivers from:

    DEVICE_AND_API_INIT -> DEVICE_DT_INST_DEFINE

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-12-16 06:54:46 -06:00 committed by Anas Nashif
parent f387c59ad5
commit a4c4999254
1 changed files with 2 additions and 2 deletions

View File

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