On 29 May 2017 at 01:57, <patrice.chot...@st.com> wrote: > From: Patrice Chotard <patrice.chot...@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 <jjhib...@ti.com> > Signed-off-by: Patrice Chotard <patrice.chot...@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 <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot