diff options
author | Jan Glauber <jang@linux.vnet.ibm.com> | 2011-04-19 21:29:14 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-05-04 15:05:49 +1000 |
commit | 1822bc9093e05059e4144d6041b0f5450ad275e1 (patch) | |
tree | ceb599625dd6ff3f93f9cf1c1070f4c0c576f718 /arch/s390/crypto/prng.c | |
parent | ba0e14acc417eceb895efda1ff46366f4d1728f8 (diff) | |
download | linux-1822bc9093e05059e4144d6041b0f5450ad275e1.tar.gz linux-1822bc9093e05059e4144d6041b0f5450ad275e1.tar.bz2 linux-1822bc9093e05059e4144d6041b0f5450ad275e1.zip |
crypto: s390 - extend crypto facility check
The specification which crypto facility is required for an algorithm is added
as a parameter to the availability check which is done before an algorithm is
registered. With this change it is easier to add new algorithms that require
different facilities.
Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/s390/crypto/prng.c')
-rw-r--r-- | arch/s390/crypto/prng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/crypto/prng.c b/arch/s390/crypto/prng.c index 975e3ab13cb5..0fc8115b0aea 100644 --- a/arch/s390/crypto/prng.c +++ b/arch/s390/crypto/prng.c @@ -166,7 +166,7 @@ static int __init prng_init(void) int ret; /* check if the CPU has a PRNG */ - if (!crypt_s390_func_available(KMC_PRNG)) + if (!crypt_s390_func_available(KMC_PRNG, CRYPT_S390_MSA)) return -EOPNOTSUPP; if (prng_chunk_size < 8) |