diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2016-10-06 09:55:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-27 10:00:31 -0400 |
commit | bc2a024f865d712bb5748aabe77cd515d7d5eea9 (patch) | |
tree | b5db618d7f026f2c32ba7fae9a8f74853154f480 /drivers/tty | |
parent | b20fb13c7c093f9170fbf162fc7f333d7a5cf77a (diff) |
serial: SERIAL_STM32 should depend on HAS_DMA
If NO_DMA=y:
drivers/built-in.o: In function `stm32_serial_remove':
stm32-usart.c:(.text+0xcea1a): undefined reference to `bad_dma_ops'
stm32-usart.c:(.text+0xcea7a): undefined reference to `bad_dma_ops'
Add a dependency on HAS_DMA to fix this.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index c7831407a882..25c1d7bc0100 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig | |||
@@ -1625,6 +1625,7 @@ config SERIAL_SPRD_CONSOLE | |||
1625 | config SERIAL_STM32 | 1625 | config SERIAL_STM32 |
1626 | tristate "STMicroelectronics STM32 serial port support" | 1626 | tristate "STMicroelectronics STM32 serial port support" |
1627 | select SERIAL_CORE | 1627 | select SERIAL_CORE |
1628 | depends on HAS_DMA | ||
1628 | depends on ARM || COMPILE_TEST | 1629 | depends on ARM || COMPILE_TEST |
1629 | help | 1630 | help |
1630 | This driver is for the on-chip Serial Controller on | 1631 | This driver is for the on-chip Serial Controller on |