[PATCH] Make MIC a menuconfig to ease disabling it all

From: Vincent Legoll
Date: Sun Dec 03 2017 - 07:10:03 EST


No need to get into the submenu to disable all MIC-related config entries

Signed-off-by: Vincent Legoll <vincent.legoll@xxxxxxxxx>
---
drivers/misc/mic/Kconfig | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/misc/mic/Kconfig b/drivers/misc/mic/Kconfig
index 227cc7443671..badc84356715 100644
--- a/drivers/misc/mic/Kconfig
+++ b/drivers/misc/mic/Kconfig
@@ -1,4 +1,7 @@
-menu "Intel MIC & related support"
+menuconfig INTEL_MISC_BUS
+ bool "Intel MIC & related support"
+
+if INTEL_MISC_BUS

comment "Intel MIC Bus Driver"

@@ -153,4 +156,4 @@ if VOP
source "drivers/vhost/Kconfig.vringh"
endif

-endmenu
+endif # INTEL_MISC_BUS
--
2.11.0