[PATCH v2 30/46] phy: usbphyc: Fix not calling dev_err with a device

Patrice CHOTARD patrice.chotard at st.com
Wed Sep 16 09:47:38 CEST 2020


Hi Sean

On 9/15/20 4:45 PM, Sean Anderson wrote:
> Use the phy's device.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> Changes in v2:
> - New
>
>  drivers/phy/phy-stm32-usbphyc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c
> index c6d3048602..9d4296d649 100644
> --- a/drivers/phy/phy-stm32-usbphyc.c
> +++ b/drivers/phy/phy-stm32-usbphyc.c
> @@ -311,7 +311,7 @@ static int stm32_usbphyc_of_xlate(struct phy *phy,
>  
>  	if ((phy->id == 0 && args->args_count != 1) ||
>  	    (phy->id == 1 && args->args_count != 2)) {
> -		dev_err(dev, "invalid number of cells for phy port%ld\n",
> +		dev_err(phy->dev, "invalid number of cells for phy port%ld\n",
>  			phy->id);
>  		return -EINVAL;
>  	}

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

Thanks


More information about the U-Boot mailing list