diff options
author | Magnus Damm <damm@opensource.se> | 2009-11-05 14:34:57 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-11-06 17:23:04 +0900 |
commit | 345e5a7672f561b539b3249cbe437b8d6595ab1b (patch) | |
tree | 28bb5abdaa86d8eed783595ef8cd84e3274d0400 | |
parent | 7c9abfb884b8737f0afdc8a88bcea77526f0da87 (diff) |
serial: sh-sci: disable callback typo fix
Avoid invoking the disable callback in case of NULL.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | drivers/serial/sh-sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c index 85119fb7cb50..6498bd1fb6dd 100644 --- a/drivers/serial/sh-sci.c +++ b/drivers/serial/sh-sci.c @@ -1143,7 +1143,7 @@ static void serial_console_write(struct console *co, const char *s, while ((sci_in(port, SCxSR) & bits) != bits) cpu_relax(); - if (sci_port->disable); + if (sci_port->disable) sci_port->disable(port); } |