diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-09-20 18:54:37 +0400 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2014-10-06 16:50:43 +0400 |
commit | 32d019265d1f0c334f2f86407abf295d46bd2f4d (patch) | |
tree | 0d6f5d7eac5cc86c3fdb7daacb5a791cf61247bd /drivers/serial | |
parent | 3f78a28037c65b92d2717b7787902a853c2506a4 (diff) | |
download | u-boot-32d019265d1f0c334f2f86407abf295d46bd2f4d.tar.xz |
stdio: Add force parameter to stdio_deregister
In some cases we really want to move forward with a deregister, add a force
parameter to allow this, and replace the dev with a nulldev in this case.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/serial-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index 1ac943f692..fd010cac42 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)) + if (stdio_deregister_dev(upriv->sdev), 0) return -EPERM; #endif |