提交 345e5a76 编写于 作者: M Magnus Damm 提交者: Paul Mundt

serial: sh-sci: disable callback typo fix

Avoid invoking the disable callback in case of NULL.
Signed-off-by: NMagnus Damm <damm@opensource.se>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册