summaryrefslogtreecommitdiff
path: root/drivers/platform/Kconfig
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-06-20 17:56:27 +0300
committerHans de Goede <hdegoede@redhat.com>2022-06-27 10:37:49 +0300
commit44fc1060a62d4810e2ce8f961232c34dad006ec8 (patch)
treeee6c2788fe3d566f729c1a327f2ba5e41299aa93 /drivers/platform/Kconfig
parent349da8ee726a19c5034145199985bbf78a1e933d (diff)
downloadlinux-44fc1060a62d4810e2ce8f961232c34dad006ec8.tar.xz
platform/x86: Kconfig: Remove unnecessary "if X86"
drivers/platform/x86/Kconfig is wrapped in one big if X86_PLATFORM_DEVICES .. endif and X86_PLATFORM_DEVICES already has a "depends on X86" so the "if X86" in drivers/platform/Kconfig is not necessary and except for MIPS none of the other includes there has such an if. So let's remove it. While at it also move the x86/Kconfig include to the end of the file for alphabetical sorting. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220620145628.5882-2-hdegoede@redhat.com
Diffstat (limited to 'drivers/platform/Kconfig')
-rw-r--r--drivers/platform/Kconfig5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig
index 18fc6a08569e..b437847b6237 100644
--- a/drivers/platform/Kconfig
+++ b/drivers/platform/Kconfig
@@ -1,7 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-only
-if X86
-source "drivers/platform/x86/Kconfig"
-endif
if MIPS
source "drivers/platform/mips/Kconfig"
endif
@@ -15,3 +12,5 @@ source "drivers/platform/mellanox/Kconfig"
source "drivers/platform/olpc/Kconfig"
source "drivers/platform/surface/Kconfig"
+
+source "drivers/platform/x86/Kconfig"