summaryrefslogtreecommitdiffstats
path: root/drivers/serial/sh-sci.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-11-05 15:34:57 +0100
committerPaul Mundt <lethal@linux-sh.org>2009-11-06 09:23:04 +0100
commit345e5a7672f561b539b3249cbe437b8d6595ab1b (patch)
tree28bb5abdaa86d8eed783595ef8cd84e3274d0400 /drivers/serial/sh-sci.c
parentMerge branch 'kvm-updates/2.6.32' of git://git.kernel.org/pub/scm/virt/kvm/kvm (diff)
downloadlinux-345e5a7672f561b539b3249cbe437b8d6595ab1b.tar.xz
linux-345e5a7672f561b539b3249cbe437b8d6595ab1b.zip
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 '')
-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 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);
}