• Arnd Bergmann's avatar
    arm64: fix ACPI dependencies · 2c870e61
    Arnd Bergmann authored
    Kconfig reports a warning on x86 builds after the ARM64 dependency
    was added.
    
    drivers/acpi/Kconfig:6:error: recursive dependency detected!
    drivers/acpi/Kconfig:6:       symbol ACPI depends on EFI
    
    This rephrases the dependency to keep the ARM64 details out of the
    shared Kconfig file, so Kconfig no longer gets confused by it.
    
    For consistency, all three architectures that support ACPI now
    select ARCH_SUPPORTS_ACPI in exactly the configuration in which
    they allow it. We still need the 'default x86', as each one
    wants a different default: default-y on x86, default-n on arm64,
    and always-y on ia64.
    
    Fixes: 5bcd4408 ("drivers: acpi: add dependency of EFI for arm64")
    Reviewed-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Acked-by: default avatarWill Deacon <will.deacon@arm.com>
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    2c870e61
Kconfig 41.7 KB