Skip to contentSkip to conversation

Restrict ST ASC driver to only build on !ARM when COMPILE_TEST is set.

PATCH Dave Jones 1 participant 1 message Sep 3, 2013 1 message not in the archive TTY layer and serial drivers

lore
Share & tools
lore

Dave Jones

author
#1 lore raw
In reply to a message not in the archive

The Kconfig for this option suggests it's only relevant on STi SoCs, so add depends to have it not show up on archs that won't ever run it.

drivers/tty/serial/Kconfig +1 -0
index cc4c868..304a637 100644
@@ -1503,6 +1503,7 @@ config SERIAL_FSL_LPUART_CONSOLE
 config SERIAL_ST_ASC
 	tristate "ST ASC serial port support"
 	select SERIAL_CORE
+	depends on ARM || COMPILE_TEST
 	help
 	  This driver is for the on-chip Asychronous Serial Controller on
 	  STMicroelectronics STi SoCs.