stm class: Hide STM-specific options if STM is disabled
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 22 Dec 2015 15:25:15 +0000 (17:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 06:43:17 +0000 (22:43 -0800)
If STM=n, it doesn't make sense to ask about STM_DUMMY and
STM_SOURCE_CONSOLE support, which are not even built when enabled
anyway. Hence hide these options if STM=n.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/stm/Kconfig

index 83e9f591a54b356150a7e2090e9a14473b6f96a0..4c13762f2b4daaaf454f4b18b89ed10be29aa8b3 100644 (file)
@@ -8,6 +8,8 @@ config STM
 
          Say Y here to enable System Trace Module device support.
 
+if STM
+
 config STM_DUMMY
        tristate "Dummy STM driver"
        help
@@ -24,3 +26,5 @@ config STM_SOURCE_CONSOLE
 
          If you want to send kernel console messages over STM devices,
          say Y.
+
+endif