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