[U-Boot] [PATCH fix for v2014.10 4/5] stdio: Add force parameter to stdio_deregister

Rommel Custodio
2014-10-09T02:18:28Z

Dear Hans de Goede,

Typographical error here:

> --- a/drivers/serial/serial-uclass.c
> +++ b/drivers/serial/serial-uclass.c
> <at> <at> -197,7 +197,7 <at> <at> 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)

Breaks sandbox build, and probably others.

All the best,
RgC

Hans de Goede <hdegoede <at> redhat.com> writes:

>
> 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 <at> redhat.com>