diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-28 18:48:57 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-28 18:48:57 -0400 |
commit | 596c96ba06e5d56e72451e02f93f4e15e17458df (patch) | |
tree | 78bc640acacb8faeb621c51296e99dbb0533a147 /drivers/net/smc91x.c | |
parent | ad18b0ea089928367185e13d11424aea91d4b41f (diff) | |
parent | 20731945ae743034353a88c307920d1f16cf8ac8 (diff) |
Merge branch 'master'
Diffstat (limited to 'drivers/net/smc91x.c')
-rw-r--r-- | drivers/net/smc91x.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index c5bc8ae84dd3..c573bb351d4c 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c | |||
@@ -2295,11 +2295,11 @@ static int smc_drv_remove(struct device *dev) | |||
2295 | return 0; | 2295 | return 0; |
2296 | } | 2296 | } |
2297 | 2297 | ||
2298 | static int smc_drv_suspend(struct device *dev, pm_message_t state, u32 level) | 2298 | static int smc_drv_suspend(struct device *dev, pm_message_t state) |
2299 | { | 2299 | { |
2300 | struct net_device *ndev = dev_get_drvdata(dev); | 2300 | struct net_device *ndev = dev_get_drvdata(dev); |
2301 | 2301 | ||
2302 | if (ndev && level == SUSPEND_DISABLE) { | 2302 | if (ndev) { |
2303 | if (netif_running(ndev)) { | 2303 | if (netif_running(ndev)) { |
2304 | netif_device_detach(ndev); | 2304 | netif_device_detach(ndev); |
2305 | smc_shutdown(ndev); | 2305 | smc_shutdown(ndev); |
@@ -2309,12 +2309,12 @@ static int smc_drv_suspend(struct device *dev, pm_message_t state, u32 level) | |||
2309 | return 0; | 2309 | return 0; |
2310 | } | 2310 | } |
2311 | 2311 | ||
2312 | static int smc_drv_resume(struct device *dev, u32 level) | 2312 | static int smc_drv_resume(struct device *dev) |
2313 | { | 2313 | { |
2314 | struct platform_device *pdev = to_platform_device(dev); | 2314 | struct platform_device *pdev = to_platform_device(dev); |
2315 | struct net_device *ndev = dev_get_drvdata(dev); | 2315 | struct net_device *ndev = dev_get_drvdata(dev); |
2316 | 2316 | ||
2317 | if (ndev && level == RESUME_ENABLE) { | 2317 | if (ndev) { |
2318 | struct smc_local *lp = netdev_priv(ndev); | 2318 | struct smc_local *lp = netdev_priv(ndev); |
2319 | smc_enable_device(pdev); | 2319 | smc_enable_device(pdev); |
2320 | if (netif_running(ndev)) { | 2320 | if (netif_running(ndev)) { |