Commit 345e5a76 authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

serial: sh-sci: disable callback typo fix

Avoid invoking the disable callback in case of NULL.
Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 7c9abfb8
...@@ -1143,7 +1143,7 @@ static void serial_console_write(struct console *co, const char *s, ...@@ -1143,7 +1143,7 @@ static void serial_console_write(struct console *co, const char *s,
while ((sci_in(port, SCxSR) & bits) != bits) while ((sci_in(port, SCxSR) & bits) != bits)
cpu_relax(); cpu_relax();
if (sci_port->disable); if (sci_port->disable)
sci_port->disable(port); sci_port->disable(port);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment