s390/crypto: sha: Use -ENODEV instead of -EOPNOTSUPP
authorDavid Hildenbrand <david@redhat.com>
Wed, 12 Jun 2019 13:33:06 +0000 (15:33 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 15 Jun 2019 10:24:48 +0000 (12:24 +0200)
commit45488c48e49b6ded9850bb0293668a92f96293c2
tree3b3cb85e8934f43ed629f69d6735800fb51e2a94
parentba6a98fe79b416541d11d6d4a89ba8d86b5409a2
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>
arch/s390/crypto/sha1_s390.c
arch/s390/crypto/sha256_s390.c
arch/s390/crypto/sha512_s390.c