net: ethernet: cpmac: Call SET_NETDEV_DEV()
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 8 Dec 2016 19:41:25 +0000 (11:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2016 02:26:58 +0000 (21:26 -0500)
commit5579f28cc8ba8a3b489cb042fcb30d331236c3bb
tree5d78835b264a00ab13a5911f88ccd944d13d9caa
parent9cecb138e54c54989375bceeb448affcdf03497f
net: ethernet: cpmac: Call SET_NETDEV_DEV()

The TI CPMAC 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: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpmac.c