Merge branch 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / arm64 / crypto / nhpoly1305-neon-glue.c
index 22cc32ac9448dba73febc4ad447d5a8144307a4c..38a589044b6ccf285b1a2a2749be9929f2a51a4a 100644 (file)
@@ -56,7 +56,7 @@ static struct shash_alg nhpoly1305_alg = {
 
 static int __init nhpoly1305_mod_init(void)
 {
-       if (!(elf_hwcap & HWCAP_ASIMD))
+       if (!cpu_have_named_feature(ASIMD))
                return -ENODEV;
 
        return crypto_register_shash(&nhpoly1305_alg);