summaryrefslogtreecommitdiffstats
path: root/arch/s390/crypto/sha1_s390.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2019-06-12 15:33:06 +0200
committerHeiko Carstens <heiko.carstens@de.ibm.com>2019-06-15 12:24:48 +0200
commit45488c48e49b6ded9850bb0293668a92f96293c2 (patch)
tree3b3cb85e8934f43ed629f69d6735800fb51e2a94 /arch/s390/crypto/sha1_s390.c
parentba6a98fe79b416541d11d6d4a89ba8d86b5409a2 (diff)
downloadlinux-45488c48e49b6ded9850bb0293668a92f96293c2.tar.gz
linux-45488c48e49b6ded9850bb0293668a92f96293c2.tar.bz2
linux-45488c48e49b6ded9850bb0293668a92f96293c2.zip
s390/crypto: sha: Use -ENODEV instead of -EOPNOTSUPP
Let's use the error value that is typically used if HW support is not available when trying to load a module - this is also what systemd's systemd-modules-load.service expects. Reviewed-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'arch/s390/crypto/sha1_s390.c')
-rw-r--r--arch/s390/crypto/sha1_s390.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/crypto/sha1_s390.c b/arch/s390/crypto/sha1_s390.c
index 009572e8276d..7c15542d3685 100644
--- a/arch/s390/crypto/sha1_s390.c
+++ b/arch/s390/crypto/sha1_s390.c
@@ -86,7 +86,7 @@ static struct shash_alg alg = {
static int __init sha1_s390_init(void)
{
if (!cpacf_query_func(CPACF_KIMD, CPACF_KIMD_SHA_1))
- return -EOPNOTSUPP;
+ return -ENODEV;
return crypto_register_shash(&alg);
}