serial/efm32-uart: use COMPILE_TEST symbol to extend compile test coverage
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 17 Jul 2013 06:48:41 +0000 (08:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 23:06:15 +0000 (16:06 -0700)
The driver fails to build on x86 because writel_relaxed isn't available
there. That function exists on arm, arm64, avr32, hexagon, mips and sh,
but adding all these is overkill so stick to arm only.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig

index bc486deeeae555c530031dd93e462c64ca7bca02..6e73781bea6323eda1dc4a5cb19f3cf72509e2c6 100644 (file)
@@ -1424,8 +1424,8 @@ config SERIAL_AR933X_NR_UARTS
          to support.
 
 config SERIAL_EFM32_UART
-       tristate "EFM32 UART/USART port."
-       depends on ARCH_EFM32
+       tristate "EFM32 UART/USART port"
+       depends on ARM && (ARCH_EFM32 || COMPILE_TEST)
        select SERIAL_CORE
        help
          This driver support the USART and UART ports on