diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2006-09-28 01:10:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-10-16 20:09:47 -0400 |
commit | 16bfa676a7cc64695f7e9694c380ebd26c461ae5 (patch) | |
tree | f4d61e756ecbcc8ea08a0009f838813c67942d19 /drivers/net/wireless/bcm43xx | |
parent | 7c28ad2d83ecc637237fe684659a6afbce0bb2a8 (diff) |
[PATCH] bcm43xx-softmac: check returned value from pci_enable_device
Linus's tree now has a configuration option that prints a warning whenever
the returned value of any routine is ignored. This patch fixes the only such
warning for bcm43xx.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/bcm43xx')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/bcm43xx/bcm43xx_main.c index 0f047d42158f..7776b5c42ac7 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_main.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_main.c | |||
@@ -4207,7 +4207,11 @@ static int bcm43xx_resume(struct pci_dev *pdev) | |||
4207 | dprintk(KERN_INFO PFX "Resuming...\n"); | 4207 | dprintk(KERN_INFO PFX "Resuming...\n"); |
4208 | 4208 | ||
4209 | pci_set_power_state(pdev, 0); | 4209 | pci_set_power_state(pdev, 0); |
4210 | pci_enable_device(pdev); | 4210 | err = pci_enable_device(pdev); |
4211 | if (err) { | ||
4212 | printk(KERN_ERR PFX "Failure with pci_enable_device!\n"); | ||
4213 | return err; | ||
4214 | } | ||
4211 | pci_restore_state(pdev); | 4215 | pci_restore_state(pdev); |
4212 | 4216 | ||
4213 | bcm43xx_chipset_attach(bcm); | 4217 | bcm43xx_chipset_attach(bcm); |