|
@@ -14,6 +14,7 @@
|
|
|
#include <crypto/aes.h>
|
|
|
#include <crypto/internal/simd.h>
|
|
|
#include <crypto/internal/skcipher.h>
|
|
|
+#include <linux/cpufeature.h>
|
|
|
#include <linux/module.h>
|
|
|
#include <crypto/xts.h>
|
|
|
|
|
@@ -425,9 +426,6 @@ static int __init aes_init(void)
|
|
|
int err;
|
|
|
int i;
|
|
|
|
|
|
- if (!(elf_hwcap2 & HWCAP2_AES))
|
|
|
- return -ENODEV;
|
|
|
-
|
|
|
err = crypto_register_skciphers(aes_algs, ARRAY_SIZE(aes_algs));
|
|
|
if (err)
|
|
|
return err;
|
|
@@ -451,5 +449,5 @@ unregister_simds:
|
|
|
return err;
|
|
|
}
|
|
|
|
|
|
-module_init(aes_init);
|
|
|
+module_cpu_feature_match(AES, aes_init);
|
|
|
module_exit(aes_exit);
|