net: fec: Fix issue in DM probe timeout
authorYe Li <ye.li@nxp.com>
Wed, 28 Mar 2018 12:54:16 +0000 (20:54 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 13 Apr 2018 20:47:39 +0000 (15:47 -0500)
commit2087eac25709071e5e4f32706db91a257160ef36
tree2f10b78393d48e2e11ecbcf656b84c556deb694e
parent979e0fc86275fc09c85892aa2cd7987fa6f97a54
net: fec: Fix issue in DM probe timeout

Since the probe function has changed to reset FEC controller prior than
setup PHY. If reset FEC controller timeout, the priv->phydev is not
initialized, so can't free it.

Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/fec_mxc.c