stmmac: mdio register has to fail if the phy is not found
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Wed, 6 Feb 2013 20:47:52 +0000 (20:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Feb 2013 01:12:10 +0000 (20:12 -0500)
With this patch the stmmac fails in case of the phy device
is not found; w/o this fix the mdio can be register twice when
do down/up the iface and this is not correct.

Reported-by: Stas <stsp@list.ru>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found