diff options
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 1438fdd20826..0ddaa611cc61 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c | |||
@@ -2291,11 +2291,11 @@ static int smc_drv_remove(struct device *dev) | |||
2291 | return 0; | 2291 | return 0; |
2292 | } | 2292 | } |
2293 | 2293 | ||
2294 | static int smc_drv_suspend(struct device *dev, pm_message_t state, u32 level) | 2294 | static int smc_drv_suspend(struct device *dev, pm_message_t state) |
2295 | { | 2295 | { |
2296 | struct net_device *ndev = dev_get_drvdata(dev); | 2296 | struct net_device *ndev = dev_get_drvdata(dev); |
2297 | 2297 | ||
2298 | if (ndev && level == SUSPEND_DISABLE) { | 2298 | if (ndev) { |
2299 | if (netif_running(ndev)) { | 2299 | if (netif_running(ndev)) { |
2300 | netif_device_detach(ndev); | 2300 | netif_device_detach(ndev); |
2301 | smc_shutdown(ndev); | 2301 | smc_shutdown(ndev); |
@@ -2305,12 +2305,12 @@ static int smc_drv_suspend(struct device *dev, pm_message_t state, u32 level) | |||
2305 | return 0; | 2305 | return 0; |
2306 | } | 2306 | } |
2307 | 2307 | ||
2308 | static int smc_drv_resume(struct device *dev, u32 level) | 2308 | static int smc_drv_resume(struct device *dev) |
2309 | { | 2309 | { |
2310 | struct platform_device *pdev = to_platform_device(dev); | 2310 | struct platform_device *pdev = to_platform_device(dev); |
2311 | struct net_device *ndev = dev_get_drvdata(dev); | 2311 | struct net_device *ndev = dev_get_drvdata(dev); |
2312 | 2312 | ||
2313 | if (ndev && level == RESUME_ENABLE) { | 2313 | if (ndev) { |
2314 | struct smc_local *lp = netdev_priv(ndev); | 2314 | struct smc_local *lp = netdev_priv(ndev); |
2315 | smc_enable_device(pdev); | 2315 | smc_enable_device(pdev); |
2316 | if (netif_running(ndev)) { | 2316 | if (netif_running(ndev)) { |