x86/cpufeature: Replace cpu_has_avx with boot_cpu_has() usage
[linux-2.6-block.git] / arch / x86 / crypto / camellia_aesni_avx2_glue.c
index c07f699826a0a633605089548a275b53225423c1..60907c139c4e2a7842f412ebcbfd744085cb6020 100644 (file)
@@ -562,7 +562,8 @@ static int __init camellia_aesni_init(void)
 {
        const char *feature_name;
 
-       if (!boot_cpu_has(X86_FEATURE_AVX2) || !cpu_has_avx ||
+       if (!boot_cpu_has(X86_FEATURE_AVX) ||
+           !boot_cpu_has(X86_FEATURE_AVX2) ||
            !boot_cpu_has(X86_FEATURE_AES) ||
            !boot_cpu_has(X86_FEATURE_OSXSAVE)) {
                pr_info("AVX2 or AES-NI instructions are not detected.\n");