sh-sci: disable callback typo fix
PATCH 1/5 sh-sci: disable callback typo fix
From: Magnus Damm <[email protected]>
Avoid invoking the disable callback in case of NULL.
Signed-off-by Magnus Damm <[email protected]>
---
drivers/serial/sh-sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/serial/sh-sci.c +1 -1
@@ -1143,7 +1143,7 @@ static void serial_console_write(structwhile ((sci_in (port, SCxSR) & bits) != bits)cpu_relax (); -if (sci_port->disable); +if (sci_port->disable) sci_port->disable (port); }