From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 31 May 2017 21:11:37 -0600 Subject: [U-Boot] [PATCH v4 3/5] drivers: phy: Set phy->dev to NULL when generic_phy_get_by_index() fails In-Reply-To: <1496044664-13297-4-git-send-email-patrice.chotard@st.com> References: <1496044664-13297-1-git-send-email-patrice.chotard@st.com> <1496044664-13297-4-git-send-email-patrice.chotard@st.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 29 May 2017 at 01:57, wrote: > From: Patrice Chotard > > 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 > Signed-off-by: Patrice Chotard > --- > > 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