serial-uclass: Fix compilation error
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
a79c911f35
commit
4a74298c54
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user