projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c9abfb
)
serial: sh-sci: disable callback typo fix
author
Magnus Damm
<damm@opensource.se>
Thu, 5 Nov 2009 14:34:57 +0000
(14:34 +0000)
committer
Paul Mundt
<lethal@linux-sh.org>
Fri, 6 Nov 2009 08:23:04 +0000
(17:23 +0900)
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>
drivers/serial/sh-sci.c
patch
|
blob
|
history
diff --git
a/drivers/serial/sh-sci.c
b/drivers/serial/sh-sci.c
index 85119fb7cb50c450ad5d0811403f065ba15928eb..6498bd1fb6dd3952b3b0c3e093675865a9f62051 100644
(file)
--- 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);
}