]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial-uclass: Fix compilation error
authorHans de Goede <hdegoede@redhat.com>
Fri, 10 Oct 2014 16:30:17 +0000 (18:30 +0200)
committerTom Rini <trini@ti.com>
Fri, 10 Oct 2014 16:37:59 +0000 (12:37 -0400)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/serial/serial-uclass.c

index fd010cac4286261da1b4aa8a52bd729cc653d81c..6dde4eaf47286a3a38feb3c84a782c5421c01630 100644 (file)
@@ -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