[U-Boot] [PATCH v4 3/5] drivers: phy: Set phy->dev to NULL when generic_phy_get_by_index() fails
Simon Glass
sjg at chromium.org
Thu Jun 1 03:11:37 UTC 2017
On 29 May 2017 at 01:57, <patrice.chotard at st.com> wrote:
> From: Patrice Chotard <patrice.chotard at st.com>
>
> phy->dev need to be set to NULL in case of generic_phy_get_by_index()
> fails. Then phy->dev can be used to check if the phy is valid
>
> Reported-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
>
> v4: _ ensure that phy->dev is set to NULL in case of
> generic_phy_get_by_index() fails
>
> drivers/phy/phy-uclass.c | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list