linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/05] sh-sci: disable callback typo fix
@ 2009-11-05 14:34 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2009-11-05 14:34 UTC (permalink / raw)
  To: linux-sh

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(-)

--- 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);
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-05 14:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-05 14:34 [PATCH 01/05] sh-sci: disable callback typo fix Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).