diff options
author | David S. Miller <davem@davemloft.net> | 2011-10-24 18:18:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-24 18:18:09 -0400 |
commit | 1805b2f04855f07afe3a71d620a68f483b0ed74f (patch) | |
tree | b823b90f37f5404fcaef70f785c70112ca74a329 /drivers/net/ethernet/jme.c | |
parent | 78d81d15b74246c7cedf84894434890b33da3907 (diff) | |
parent | f42af6c486aa5ca6ee62800cb45c5b252020509d (diff) |
Merge branch 'master' of ra.kernel.org:/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'drivers/net/ethernet/jme.c')
-rw-r--r-- | drivers/net/ethernet/jme.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c index 7a0c746f2749..7becff1f387d 100644 --- a/drivers/net/ethernet/jme.c +++ b/drivers/net/ethernet/jme.c | |||
@@ -3132,6 +3132,9 @@ jme_suspend(struct device *dev) | |||
3132 | struct net_device *netdev = pci_get_drvdata(pdev); | 3132 | struct net_device *netdev = pci_get_drvdata(pdev); |
3133 | struct jme_adapter *jme = netdev_priv(netdev); | 3133 | struct jme_adapter *jme = netdev_priv(netdev); |
3134 | 3134 | ||
3135 | if (!netif_running(netdev)) | ||
3136 | return 0; | ||
3137 | |||
3135 | atomic_dec(&jme->link_changing); | 3138 | atomic_dec(&jme->link_changing); |
3136 | 3139 | ||
3137 | netif_device_detach(netdev); | 3140 | netif_device_detach(netdev); |
@@ -3172,6 +3175,9 @@ jme_resume(struct device *dev) | |||
3172 | struct net_device *netdev = pci_get_drvdata(pdev); | 3175 | struct net_device *netdev = pci_get_drvdata(pdev); |
3173 | struct jme_adapter *jme = netdev_priv(netdev); | 3176 | struct jme_adapter *jme = netdev_priv(netdev); |
3174 | 3177 | ||
3178 | if (!netif_running(netdev)) | ||
3179 | return 0; | ||
3180 | |||
3175 | jme_clear_pm(jme); | 3181 | jme_clear_pm(jme); |
3176 | jme_phy_on(jme); | 3182 | jme_phy_on(jme); |
3177 | if (test_bit(JME_FLAG_SSET, &jme->flags)) | 3183 | if (test_bit(JME_FLAG_SSET, &jme->flags)) |