Skip to content

Commit

Permalink
serial: sh-sci: Restrict non-COMPILE_TEST compilation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurent Pinchart authored and Greg Kroah-Hartman committed Feb 13, 2014
1 parent 25eb50b commit 42f36ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/tty/serial/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42f36ba

Please sign in to comment.