diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2015-05-04 15:04:43 +0200 |
---|---|---|
committer | Jerome Forissier <jerome.forissier@linaro.org> | 2015-05-05 08:44:33 +0200 |
commit | 855171e1646a2c9cd2ebdeed1da7b4b037f36cc3 (patch) | |
tree | 1035ba690649354237305e39dcb23cd21027995c /core/tee/tee_cryp_utl.c | |
parent | f5933e3dd31a3401e9e7113b450a3bb922ef45e0 (diff) |
crypto: initialize with service_init()
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
Diffstat (limited to 'core/tee/tee_cryp_utl.c')
-rw-r--r-- | core/tee/tee_cryp_utl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/tee/tee_cryp_utl.c b/core/tee/tee_cryp_utl.c index 6d87a45f..51251a8e 100644 --- a/core/tee/tee_cryp_utl.c +++ b/core/tee/tee_cryp_utl.c @@ -32,6 +32,7 @@ #include <tee/tee_cryp_utl.h> #include <tee/tee_cryp_provider.h> #include <rng_support.h> +#include <initcall.h> #if !defined(CFG_WITH_SOFTWARE_PRNG) TEE_Result get_rng_array(void *buffer, int len) @@ -402,10 +403,12 @@ TEE_Result tee_prng_add_entropy(const uint8_t *in, size_t len) return TEE_SUCCESS; } -TEE_Result tee_cryp_init(void) +static TEE_Result tee_cryp_init(void) { if (crypto_ops.init) return crypto_ops.init(); return TEE_SUCCESS; } + +service_init(tee_cryp_init); |