diff options
Diffstat (limited to 'drivers/net/stmmac')
-rw-r--r-- | drivers/net/stmmac/stmmac_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c index bfc2d1251502..c0dc78571c62 100644 --- a/drivers/net/stmmac/stmmac_main.c +++ b/drivers/net/stmmac/stmmac_main.c | |||
@@ -1517,6 +1517,8 @@ static int stmmac_probe(struct net_device *dev) | |||
1517 | pr_warning("\tno valid MAC address;" | 1517 | pr_warning("\tno valid MAC address;" |
1518 | "please, use ifconfig or nwhwconfig!\n"); | 1518 | "please, use ifconfig or nwhwconfig!\n"); |
1519 | 1519 | ||
1520 | spin_lock_init(&priv->lock); | ||
1521 | |||
1520 | ret = register_netdev(dev); | 1522 | ret = register_netdev(dev); |
1521 | if (ret) { | 1523 | if (ret) { |
1522 | pr_err("%s: ERROR %i registering the device\n", | 1524 | pr_err("%s: ERROR %i registering the device\n", |
@@ -1528,8 +1530,6 @@ static int stmmac_probe(struct net_device *dev) | |||
1528 | dev->name, (dev->features & NETIF_F_SG) ? "on" : "off", | 1530 | dev->name, (dev->features & NETIF_F_SG) ? "on" : "off", |
1529 | (dev->features & NETIF_F_IP_CSUM) ? "on" : "off"); | 1531 | (dev->features & NETIF_F_IP_CSUM) ? "on" : "off"); |
1530 | 1532 | ||
1531 | spin_lock_init(&priv->lock); | ||
1532 | |||
1533 | return ret; | 1533 | return ret; |
1534 | } | 1534 | } |
1535 | 1535 | ||