commit | 8cd1f70f205a1c684037f06906566ddb3066d659 | [log] [tgz] |
---|---|---|
author | Dongpo Li <lidongpo@hisilicon.com> | Mon Dec 12 20:03:43 2016 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Dec 16 13:29:35 2016 -0500 |
tree | 4be808deee2e6c332c049996ba73b8e1225cd484 | |
parent | 2087d421a5a1af4883e3cf0afb93823b7e12132a [diff] |
net: ethernet: hip04: Call SET_NETDEV_DEV() The hip04 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>