From: Hans de Goede Date: Fri, 10 Oct 2014 16:30:17 +0000 (+0200) Subject: serial-uclass: Fix compilation error X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=4a74298c54272f1b0397826072c193158d3e7f14;p=u-boot.git serial-uclass: Fix compilation error Signed-off-by: Hans de Goede --- diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index fd010cac42..6dde4eaf47 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