From: Vincent Legoll Date: Sun, 7 Jan 2018 11:33:56 +0000 (+0100) Subject: virtio: make VIRTIO a menuconfig to ease disabling it all X-Git-Tag: v4.16-rc1~35^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b95fec6d2ffa53f4a8d637b0f223644d458ea4e;p=thirdparty%2Flinux.git virtio: make VIRTIO a menuconfig to ease disabling it all No need to get into the submenu to disable all VIRTIO-related config entries. This makes it easier to disable all VIRTIO config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu. This is only intended to change menuconfig UI, not change the config dependencies. Signed-off-by: Vincent Legoll Reviewed-by: Randy Dunlap Tested-by: Randy Dunlap Signed-off-by: Michael S. Tsirkin --- diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig index cff773f15b7e2..35897649c24f6 100644 --- a/drivers/virtio/Kconfig +++ b/drivers/virtio/Kconfig @@ -5,7 +5,11 @@ config VIRTIO bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST. -menu "Virtio drivers" +menuconfig VIRTIO_MENU + bool "Virtio drivers" + default y + +if VIRTIO_MENU config VIRTIO_PCI tristate "PCI driver for virtio devices" @@ -79,4 +83,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES If unsure, say 'N'. -endmenu +endif # VIRTIO_MENU