aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/crypto/prng.c
diff options
context:
space:
mode:
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>2015-02-19 17:34:07 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-07-22 09:58:02 +0200
commitd05377c12ae2ac88e747a28ae1e23f556d549592 (patch)
treedc1bede961f295f658e59730a47909cc2b1fc121 /arch/s390/crypto/prng.c
parents390/module: enable generic CPU feature modalias using s390 ELF hwcaps (diff)
downloadlinux-dev-d05377c12ae2ac88e747a28ae1e23f556d549592.tar.xz
linux-dev-d05377c12ae2ac88e747a28ae1e23f556d549592.zip
s390/crypto: add cpu feature modaliases for crypto modules
Use the module_cpu_feature_match() module init function to add an module alias based on required CPU features. The modules are automatically loaded on hardware that supports the required CPU features. Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/crypto/prng.c')
-rw-r--r--arch/s390/crypto/prng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/crypto/prng.c b/arch/s390/crypto/prng.c
index 9d5192c94963..b8045b97f4fb 100644
--- a/arch/s390/crypto/prng.c
+++ b/arch/s390/crypto/prng.c
@@ -17,6 +17,7 @@
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/mutex.h>
+#include <linux/cpufeature.h>
#include <linux/random.h>
#include <linux/slab.h>
#include <asm/debug.h>
@@ -914,6 +915,5 @@ static void __exit prng_exit(void)
}
}
-
-module_init(prng_init);
+module_cpu_feature_match(MSA, prng_init);
module_exit(prng_exit);