]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: lantiq_etop: Call SET_NETDEV_DEV()
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 8 Dec 2016 19:41:24 +0000 (11:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2016 02:26:58 +0000 (21:26 -0500)
commit8eaea48520d3d46a8df0cf764a8a606cfc474371
treed3c2240b88ce4a2f9b2b196588bfc1bd6ecb1ef3
parent45b30ade2b94c009d22f2e13a73f0e43d6244193
net: ethernet: lantiq_etop: Call SET_NETDEV_DEV()

The Lantiq Etop 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: 17f7da5204e4 ("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/lantiq_etop.c