mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
Revert "BACKPORT: crypto: arch - conditionalize crypto api in arch glue for lib code"
This reverts commit 47c8de47e1.
This will be reapplied later.
Change-Id: I2181874ef8de0e64007c2daf8a6f480cdeca97ac
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
This commit is contained in:
parent
dae3d3ea9f
commit
fa5e8001f7
1 changed files with 7 additions and 1 deletions
|
|
@ -69,7 +69,13 @@ static int __init blake2s_mod_init(void)
|
|||
XFEATURE_MASK_AVX512, NULL))
|
||||
static_branch_enable(&blake2s_use_avx512);
|
||||
|
||||
return 0;
|
||||
return crypto_register_shashes(blake2s_algs, ARRAY_SIZE(blake2s_algs));
|
||||
}
|
||||
|
||||
static void __exit blake2s_mod_exit(void)
|
||||
{
|
||||
if (boot_cpu_has(X86_FEATURE_SSSE3))
|
||||
crypto_unregister_shashes(blake2s_algs, ARRAY_SIZE(blake2s_algs));
|
||||
}
|
||||
|
||||
module_init(blake2s_mod_init);
|
||||
|
|
|
|||
Loading…
Reference in a new issue