[U-Boot] [PATCHv1 12/14] usb: ehci/ohci: remove reset_free function

Patrice CHOTARD patrice.chotard at st.com
Tue Apr 17 11:58:43 UTC 2018


Hi Dinh

On 04/14/2018 08:51 PM, Dinh Nguyen wrote:
> The call to free the reset control line is a deadend call that doesn't
> lead to any reset control functionality.
> 
> Also the reset_free() function will be remove in a subsequent patch, so
> remove it here.
> 
> Signed-off-by: Dinh Nguyen <dinguyen at kernel.org>
> ---
>   drivers/usb/host/ehci-generic.c | 1 -
>   drivers/usb/host/ohci-generic.c | 1 -
>   2 files changed, 2 deletions(-)
> 
> diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c
> index b012d86..8ed6a27 100644
> --- a/drivers/usb/host/ehci-generic.c
> +++ b/drivers/usb/host/ehci-generic.c
> @@ -133,7 +133,6 @@ static int ehci_usb_probe(struct udevice *dev)
>   			if (reset_deassert(&priv->resets[i])) {
>   				dev_err(dev, "failed to deassert reset %d\n",
>   					i);
> -				reset_free(&priv->resets[i]);
>   				goto reset_err;
>   			}
>   			priv->reset_count++;
> diff --git a/drivers/usb/host/ohci-generic.c b/drivers/usb/host/ohci-generic.c
> index 5bdd799..f61c0fc 100644
> --- a/drivers/usb/host/ohci-generic.c
> +++ b/drivers/usb/host/ohci-generic.c
> @@ -125,7 +125,6 @@ static int ohci_usb_probe(struct udevice *dev)
>   			err = reset_deassert(&priv->resets[i]);
>   			if (err) {
>   				dev_err(dev, "failed to deassert reset %d\n", i);
> -				reset_free(&priv->resets[i]);
>   				goto reset_err;
>   			}
>   			priv->reset_count++;
> 


Reviewed-by: Patrice Chotard <patrice.chotard at st.com>


More information about the U-Boot mailing list