serial-uclass: Fix compilation error

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Hans de Goede 2014-10-10 18:30:17 +02:00 committed by Tom Rini
parent a79c911f35
commit 4a74298c54

View 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