prompt: Fix check_acpi_cap always return 1.