Skip to content
Commit b9688df3 authored by Patrice Chotard's avatar Patrice Chotard Committed by Marek Vasut
Browse files

drivers: phy: Set phy->dev to NULL when generic_phy_get_by_index() fails



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: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 576e3cc7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment