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