[U-Boot] [PATCH fix for v2014.10] serial-uclass: Fix compilation error

Hans de Goede hdegoede at redhat.com
Fri Oct 10 18:30:17 CEST 2014


Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 drivers/serial/serial-uclass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c
index fd010ca..6dde4ea 100644
--- a/drivers/serial/serial-uclass.c
+++ b/drivers/serial/serial-uclass.c
@@ -198,7 +198,7 @@ static int serial_pre_remove(struct udevice *dev)
 #ifdef CONFIG_SYS_STDIO_DEREGISTER
 	struct serial_dev_priv *upriv = dev->uclass_priv;
 
-	if (stdio_deregister_dev(upriv->sdev), 0)
+	if (stdio_deregister_dev(upriv->sdev, 0))
 		return -EPERM;
 #endif
 
-- 
2.1.0



More information about the U-Boot mailing list