summaryrefslogtreecommitdiff
path: root/arch/sparc/crypto/sha512_glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/crypto/sha512_glue.c')
-rw-r--r--arch/sparc/crypto/sha512_glue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/crypto/sha512_glue.c b/arch/sparc/crypto/sha512_glue.c
index 4d960be401c4..486f0a2b7001 100644
--- a/arch/sparc/crypto/sha512_glue.c
+++ b/arch/sparc/crypto/sha512_glue.c
@@ -20,6 +20,8 @@
#include <asm/pstate.h>
#include <asm/elf.h>
+#include "opcodes.h"
+
asmlinkage void sha512_sparc64_transform(u64 *digest, const char *data,
unsigned int rounds);
@@ -151,6 +153,7 @@ static struct shash_alg sha512 = {
.base = {
.cra_name = "sha512",
.cra_driver_name= "sha512-sparc64",
+ .cra_priority = SPARC_CR_OPCODE_PRIORITY,
.cra_flags = CRYPTO_ALG_TYPE_SHASH,
.cra_blocksize = SHA512_BLOCK_SIZE,
.cra_module = THIS_MODULE,
@@ -166,6 +169,7 @@ static struct shash_alg sha384 = {
.base = {
.cra_name = "sha384",
.cra_driver_name= "sha384-sparc64",
+ .cra_priority = SPARC_CR_OPCODE_PRIORITY,
.cra_flags = CRYPTO_ALG_TYPE_SHASH,
.cra_blocksize = SHA384_BLOCK_SIZE,
.cra_module = THIS_MODULE,