Skip to contentSkip to conversation

sh-sci: disable callback typo fix

PATCH In review Magnus Damm 1 participant 1 message Nov 5, 2009 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 sh-sci: disable callback typo fix

From: Magnus Damm <[email protected]>

Avoid invoking the disable callback in case of NULL.

---

 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(struct 
 	while ((sci_in(port, SCxSR) & bits) != bits)
 		cpu_relax();
 
-	if (sci_port->disable);
+	if (sci_port->disable)
 		sci_port->disable(port);
 }