Patchworkβ [01/05] sh-sci: disable callback typo fix

login
register
about
Submitter Magnus Damm
Date 2009-11-05 14:34:57
Message ID <20091105143457.9902.39456.sendpatchset@rxone.opensource.se>
Download mbox | patch
Permalink /patch/57892/
State Accepted
Headers show

Comments

Magnus Damm - 2009-11-05 14:34:57
From: Magnus Damm <damm@opensource.se>

Avoid invoking the disable callback in case of NULL.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 drivers/serial/sh-sci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

--- 0001/drivers/serial/sh-sci.c
+++ work/drivers/serial/sh-sci.c	2009-11-05 22:27:47.000000000 +0900
@@ -1143,7 +1143,7 @@  static void serial_console_write(struct 
 	while ((sci_in(port, SCxSR) & bits) != bits)
 		cpu_relax();
 
-	if (sci_port->disable);
+	if (sci_port->disable)
 		sci_port->disable(port);
 }