net: ethernet: hisi_femac: Call SET_NETDEV_DEV()
authorDongpo Li <lidongpo@hisilicon.com>
Mon, 12 Dec 2016 12:03:42 +0000 (20:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Dec 2016 18:29:35 +0000 (13:29 -0500)
commit2087d421a5a1af4883e3cf0afb93823b7e12132a
treef6dee8159b92677b3092e376e9008d7e4ab77644
parent66e2809dd324f0ab5e1f9d997b40d4d31a2e42b1
net: ethernet: hisi_femac: Call SET_NETDEV_DEV()

The hisi_femac driver calls into PHYLIB which now checks for
net_device->dev.parent, so make sure we do set it before calling into
any MDIO/PHYLIB related function.

Fixes: ec988ad78ed6 ("phy: Don't increment MDIO bus refcount unless it's a different owner")
Signed-off-by: Dongpo Li <lidongpo@hisilicon.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hisi_femac.c