SERIAL: SC26xx: Fix link error.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 27 Jun 2011 13:26:56 +0000 (14:26 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Jul 2011 22:38:03 +0000 (15:38 -0700)
commitf2eb3cdf14457fccb14ae8c4d7d7cee088cd3957
tree829c4e6527d79f163eb15b8eb36c12f93fb623ff
parent9c00c6e7f9137b669e691219ea871eeb2c67c3d0
SERIAL: SC26xx: Fix link error.

Kconfig allows enabling console support for the SC26xx driver even when
it's configured as a module resulting in a:

ERROR: "uart_console_device" [drivers/tty/serial/sc26xx.ko] undefined!

modpost error since the driver was merged in
eea63e0e8a60d00485b47fb6e75d9aa2566b989b [SC26XX: New serial driver for
SC2681 uarts] in 2.6.25.  Fixed by only allowing console support to be
enabled if the driver is builtin.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-serial@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: stable <stable@kernel.org>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/Kconfig