platform/mips: Adjust Kconfig to keep consistency
authorHuacai Chen <chenhuacai@loongson.cn>
Sun, 18 Sep 2022 10:12:06 +0000 (18:12 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 8 Dec 2022 10:51:52 +0000 (11:51 +0100)
Drop the "if MIPS" and "endif" drivers/platform/Kconfig. Instead add
a "depends on MIPS" to "menuconfig MIPS_PLATFORM_DEVICES" in drivers/
platform/mips/Kconfig, like all the other subdirs are doing.

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
drivers/platform/Kconfig
drivers/platform/mips/Kconfig

index dbd3277..868b203 100644 (file)
@@ -1,7 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0-only
-if MIPS
 source "drivers/platform/mips/Kconfig"
-endif
 
 source "drivers/platform/loongarch/Kconfig"
 
index 6b51ad0..fb4ac4b 100644 (file)
@@ -6,6 +6,7 @@
 menuconfig MIPS_PLATFORM_DEVICES
        bool "MIPS Platform Specific Device Drivers"
        default y
+       depends on MIPS
        help
          Say Y here to get to see options for device drivers of various
          MIPS platforms, including vendor-specific netbook/laptop/desktop