diff options
author | David S. Miller <davem@davemloft.net> | 2010-12-08 16:15:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-08 16:47:38 -0500 |
commit | fe6c791570efe717946ea7b7dd50aec96b70d551 (patch) | |
tree | 1becb5e8aea7a9c9a7d78f987bd73b0a5d8ee434 /drivers/net/stmmac | |
parent | f8bf5681cf15f77692c8ad8cb95d059ff7c622c9 (diff) | |
parent | f19872575ff7819a3723154657a497d9bca66b33 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
net/llc/af_llc.c
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 | ||