]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.0.1/serial-sc26xx-fix-link-error.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.0.1 / serial-sc26xx-fix-link-error.patch
CommitLineData
d53dcc05
GKH
1From f2eb3cdf14457fccb14ae8c4d7d7cee088cd3957 Mon Sep 17 00:00:00 2001
2From: Ralf Baechle <ralf@linux-mips.org>
3Date: Mon, 27 Jun 2011 14:26:56 +0100
4Subject: SERIAL: SC26xx: Fix link error.
5
6From: Ralf Baechle <ralf@linux-mips.org>
7
8commit f2eb3cdf14457fccb14ae8c4d7d7cee088cd3957 upstream.
9
10Kconfig allows enabling console support for the SC26xx driver even when
11it's configured as a module resulting in a:
12
13ERROR: "uart_console_device" [drivers/tty/serial/sc26xx.ko] undefined!
14
15modpost error since the driver was merged in
16eea63e0e8a60d00485b47fb6e75d9aa2566b989b [SC26XX: New serial driver for
17SC2681 uarts] in 2.6.25. Fixed by only allowing console support to be
18enabled if the driver is builtin.
19
20Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
21Cc: linux-serial@vger.kernel.org
22Cc: linux-kernel@vger.kernel.org
23Cc: linux-mips@linux-mips.org
24Acked-by: Alan Cox <alan@linux.intel.com>
25Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
26
27---
28 drivers/tty/serial/Kconfig | 2 +-
29 1 file changed, 1 insertion(+), 1 deletion(-)
30
31--- a/drivers/tty/serial/Kconfig
32+++ b/drivers/tty/serial/Kconfig
33@@ -1419,7 +1419,7 @@ config SERIAL_SC26XX
34
35 config SERIAL_SC26XX_CONSOLE
36 bool "Console on SC2681/SC2692 serial port"
37- depends on SERIAL_SC26XX
38+ depends on SERIAL_SC26XX=y
39 select SERIAL_CORE_CONSOLE
40 help
41 Support for Console on SC2681/SC2692 serial ports.