Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c The bnx2x gso_type setting bug fix in 'net' conflicted with changes in 'net-next' that broke the gso_* setting logic out into a seperate function, which also fixes the bug in question. Thus, use the 'net-next' version. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
|
||||
#undef STMMAC_XMIT_DEBUG
|
||||
/*#define STMMAC_XMIT_DEBUG*/
|
||||
#ifdef STMMAC_TX_DEBUG
|
||||
#ifdef STMMAC_XMIT_DEBUG
|
||||
#define TX_DBG(fmt, args...) printk(fmt, ## args)
|
||||
#else
|
||||
#define TX_DBG(fmt, args...) do { } while (0)
|
||||
|
@@ -188,8 +188,6 @@ int stmmac_mdio_register(struct net_device *ndev)
|
||||
goto bus_register_fail;
|
||||
}
|
||||
|
||||
priv->mii = new_bus;
|
||||
|
||||
found = 0;
|
||||
for (addr = 0; addr < PHY_MAX_ADDR; addr++) {
|
||||
struct phy_device *phydev = new_bus->phy_map[addr];
|
||||
@@ -237,8 +235,14 @@ int stmmac_mdio_register(struct net_device *ndev)
|
||||
}
|
||||
}
|
||||
|
||||
if (!found)
|
||||
if (!found) {
|
||||
pr_warning("%s: No PHY found\n", ndev->name);
|
||||
mdiobus_unregister(new_bus);
|
||||
mdiobus_free(new_bus);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
priv->mii = new_bus;
|
||||
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user