aboutsummaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-11-05 14:34:57 +0000
committerPaul Mundt <lethal@linux-sh.org>2009-11-06 17:23:04 +0900
commit345e5a7672f561b539b3249cbe437b8d6595ab1b (patch)
tree28bb5abdaa86d8eed783595ef8cd84e3274d0400 /drivers/serial
parent7c9abfb884b8737f0afdc8a88bcea77526f0da87 (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>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/sh-sci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c
index 85119fb7cb5..6498bd1fb6d 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);
}