Browse Source

tty: serial: Make the STM32 serial port depend on it's arch

The STM32 serial port is SoC specific so no point enabling it
without the architecture enabled.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Peter Robinson 8 years ago
parent
commit
adcb05f01f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/tty/serial/Kconfig

+ 1 - 1
drivers/tty/serial/Kconfig

@@ -1639,7 +1639,7 @@ config SERIAL_STM32
 	tristate "STMicroelectronics STM32 serial port support"
 	tristate "STMicroelectronics STM32 serial port support"
 	select SERIAL_CORE
 	select SERIAL_CORE
 	depends on HAS_DMA
 	depends on HAS_DMA
-	depends on ARM || COMPILE_TEST
+	depends on ARCH_STM32 || COMPILE_TEST
 	help
 	help
 	  This driver is for the on-chip Serial Controller on
 	  This driver is for the on-chip Serial Controller on
 	  STMicroelectronics STM32 MCUs.
 	  STMicroelectronics STM32 MCUs.