serial: sh-sci: Restrict non-COMPILE_TEST compilation
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 6 Feb 2014 06:47:39 +0000 (15:47 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 17:17:31 +0000 (09:17 -0800)
Hardware supported by the driver is only found on SUPERH or
ARCH_SHMOBILE platforms. Restrict non-COMPILE_TEST compilation to them.

Cc: linux-serial@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig

index a3815eaed42169171b7c878de8202e952b7e192f..923d3dea77cb958bc6513fa6a98b99f8a1840240 100644 (file)
@@ -708,7 +708,8 @@ config SERIAL_IP22_ZILOG_CONSOLE
 
 config SERIAL_SH_SCI
        tristate "SuperH SCI(F) serial port support"
-       depends on HAVE_CLK && (SUPERH || ARM || COMPILE_TEST)
+       depends on HAVE_CLK
+       depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
        select SERIAL_CORE
 
 config SERIAL_SH_SCI_NR_UARTS