diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-07-17 00:15:54 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-17 16:17:59 -0400 |
commit | cad1b9da74f14c5f15b63ffc93c53debe09b3781 (patch) | |
tree | 20ce24a96b34c941cc3267fe4e40b212ddb3a0e7 /drivers/net/eepro100.c | |
parent | f6c4286590e7cb13dd16cb2a6e4dc4a27ce6df1d (diff) |
[netdrvr] eepro100, ne2k-pci: abort resume if pci_enable_device() fails
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/eepro100.c')
-rw-r--r-- | drivers/net/eepro100.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c index 9afa47edfc58..3c54014acece 100644 --- a/drivers/net/eepro100.c +++ b/drivers/net/eepro100.c | |||
@@ -2292,10 +2292,15 @@ static int eepro100_resume(struct pci_dev *pdev) | |||
2292 | struct net_device *dev = pci_get_drvdata (pdev); | 2292 | struct net_device *dev = pci_get_drvdata (pdev); |
2293 | struct speedo_private *sp = netdev_priv(dev); | 2293 | struct speedo_private *sp = netdev_priv(dev); |
2294 | void __iomem *ioaddr = sp->regs; | 2294 | void __iomem *ioaddr = sp->regs; |
2295 | int rc; | ||
2295 | 2296 | ||
2296 | pci_set_power_state(pdev, PCI_D0); | 2297 | pci_set_power_state(pdev, PCI_D0); |
2297 | pci_restore_state(pdev); | 2298 | pci_restore_state(pdev); |
2298 | pci_enable_device(pdev); | 2299 | |
2300 | rc = pci_enable_device(pdev); | ||
2301 | if (rc) | ||
2302 | return rc; | ||
2303 | |||
2299 | pci_set_master(pdev); | 2304 | pci_set_master(pdev); |
2300 | 2305 | ||
2301 | if (!netif_running(dev)) | 2306 | if (!netif_running(dev)) |