tty: serial: Make the STM32 serial port depend on it's arch
authorPeter Robinson <pbrobinson@gmail.com>
Sun, 6 Nov 2016 20:05:02 +0000 (20:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 14:01:15 +0000 (15:01 +0100)
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>
drivers/tty/serial/Kconfig

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