diff options
| author | Jiri Slaby <jslaby@suse.cz> | 2011-07-14 08:35:11 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-23 13:34:05 -0400 |
| commit | e150c4ccbe7246c27b5208599fe9f6677c93b5fe (patch) | |
| tree | 6862d33b844f2fab1c0937ede28ef8993ac32bed | |
| parent | 1f33a51d9771b34be3cb6f7fb96a325e17bbac7b (diff) | |
TTY: msm_serial, remove unneeded console set
It doesn't make sense to set console to uart_port in console->setup.
At that time the console is set by uart_add_one_port already.
The call chain looked like:
uart_add_one_port()
uport->cons = drv->cons; <= once
uart_configure_port()
register_console()
console->setup()
port->cons = co; <= second time
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| -rw-r--r-- | drivers/tty/serial/msm_serial.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index e6ba83876508..29cbfd8c4e7c 100644 --- a/drivers/tty/serial/msm_serial.c +++ b/drivers/tty/serial/msm_serial.c | |||
| @@ -804,8 +804,6 @@ static int __init msm_console_setup(struct console *co, char *options) | |||
| 804 | if (unlikely(!port->membase)) | 804 | if (unlikely(!port->membase)) |
| 805 | return -ENXIO; | 805 | return -ENXIO; |
| 806 | 806 | ||
| 807 | port->cons = co; | ||
| 808 | |||
| 809 | msm_init_clock(port); | 807 | msm_init_clock(port); |
| 810 | 808 | ||
| 811 | if (options) | 809 | if (options) |
