Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net
Version bump conflict in batman-adv, take what's in net-next. iavf conflict, adjustment of netdev_ops in net-next conflicting with poll controller method removal in net. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -2678,12 +2678,17 @@ static int emac_init_phy(struct emac_instance *dev)
|
||||
if (of_phy_is_fixed_link(np)) {
|
||||
int res = emac_dt_mdio_probe(dev);
|
||||
|
||||
if (!res) {
|
||||
res = of_phy_register_fixed_link(np);
|
||||
if (res)
|
||||
mdiobus_unregister(dev->mii_bus);
|
||||
if (res)
|
||||
return res;
|
||||
|
||||
res = of_phy_register_fixed_link(np);
|
||||
dev->phy_dev = of_phy_find_device(np);
|
||||
if (res || !dev->phy_dev) {
|
||||
mdiobus_unregister(dev->mii_bus);
|
||||
return res ? res : -EINVAL;
|
||||
}
|
||||
return res;
|
||||
emac_adjust_link(dev->ndev);
|
||||
put_device(&dev->phy_dev->mdio.dev);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user