diff options
author | David S. Miller <davem@davemloft.net> | 2010-09-10 01:27:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-10 01:27:33 -0400 |
commit | e548833df83c3554229eff0672900bfe958b45fd (patch) | |
tree | 85efc4a76dc356593d6d394776aeb845dc580fb6 /drivers/net/stmmac | |
parent | cbd9da7be869f676afc204e1a664163778c770bd (diff) | |
parent | 053d8f6622701f849fda2ca2c9ae596c13599ba9 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
net/mac80211/main.c
Diffstat (limited to 'drivers/net/stmmac')
-rw-r--r-- | drivers/net/stmmac/stmmac_main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c index 1ccea76d89ae..03c160c6d75c 100644 --- a/drivers/net/stmmac/stmmac_main.c +++ b/drivers/net/stmmac/stmmac_main.c | |||
@@ -1862,15 +1862,15 @@ static int stmmac_resume(struct platform_device *pdev) | |||
1862 | if (!netif_running(dev)) | 1862 | if (!netif_running(dev)) |
1863 | return 0; | 1863 | return 0; |
1864 | 1864 | ||
1865 | spin_lock(&priv->lock); | ||
1866 | |||
1867 | if (priv->shutdown) { | 1865 | if (priv->shutdown) { |
1868 | /* Re-open the interface and re-init the MAC/DMA | 1866 | /* Re-open the interface and re-init the MAC/DMA |
1869 | and the rings. */ | 1867 | and the rings (i.e. on hibernation stage) */ |
1870 | stmmac_open(dev); | 1868 | stmmac_open(dev); |
1871 | goto out_resume; | 1869 | return 0; |
1872 | } | 1870 | } |
1873 | 1871 | ||
1872 | spin_lock(&priv->lock); | ||
1873 | |||
1874 | /* Power Down bit, into the PM register, is cleared | 1874 | /* Power Down bit, into the PM register, is cleared |
1875 | * automatically as soon as a magic packet or a Wake-up frame | 1875 | * automatically as soon as a magic packet or a Wake-up frame |
1876 | * is received. Anyway, it's better to manually clear | 1876 | * is received. Anyway, it's better to manually clear |
@@ -1898,7 +1898,6 @@ static int stmmac_resume(struct platform_device *pdev) | |||
1898 | 1898 | ||
1899 | netif_start_queue(dev); | 1899 | netif_start_queue(dev); |
1900 | 1900 | ||
1901 | out_resume: | ||
1902 | spin_unlock(&priv->lock); | 1901 | spin_unlock(&priv->lock); |
1903 | return 0; | 1902 | return 0; |
1904 | } | 1903 | } |