ACPI: fix menuconfig presentation of ACPI submenu
authorArnd Bergmann <arnd@arndb.de>
Tue, 21 Aug 2018 20:37:33 +0000 (22:37 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 Aug 2018 08:20:07 +0000 (10:20 +0200)
My fix for a recursive Kconfig dependency caused another issue where the
ACPI specific options end up in the top-level menu in 'menuconfig'. This
was an unintended side-effect of having a silent option between
'menuconfig ACPI' and 'if ACPI'.

Moving the ARCH_SUPPORTS_ACPI symbol ahead of the ACPI menu solves that
problem and restores the previous presentation.

Reported-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Fixes: 2c870e61132c (arm64: fix ACPI dependencies)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Kconfig

index 4a46344bf0e3f3dc1178320563dfb3d2411202ed..dd1eea90f67f1c9c998fd00941b4cb6c9b2e7fef 100644 (file)
@@ -3,6 +3,9 @@
 # ACPI Configuration
 #
 
+config ARCH_SUPPORTS_ACPI
+       bool
+
 menuconfig ACPI
        bool "ACPI (Advanced Configuration and Power Interface) Support"
        depends on ARCH_SUPPORTS_ACPI
@@ -40,9 +43,6 @@ menuconfig ACPI
          <http://www.acpi.info>
          <http://www.uefi.org/acpi/specs>
 
-config ARCH_SUPPORTS_ACPI
-       bool
-
 if ACPI
 
 config ACPI_LEGACY_TABLES_LOOKUP