Commit bc2a024f authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Greg Kroah-Hartman

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarAlexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b20fb13c
...@@ -1625,6 +1625,7 @@ config SERIAL_SPRD_CONSOLE ...@@ -1625,6 +1625,7 @@ config SERIAL_SPRD_CONSOLE
config SERIAL_STM32 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 ARM || COMPILE_TEST depends on ARM || COMPILE_TEST
help help
This driver is for the on-chip Serial Controller on This driver is for the on-chip Serial Controller on
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment