Commit 16bfa676 authored by Larry Finger's avatar Larry Finger Committed by John W. Linville

[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: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7c28ad2d
...@@ -4207,7 +4207,11 @@ static int bcm43xx_resume(struct pci_dev *pdev) ...@@ -4207,7 +4207,11 @@ static int bcm43xx_resume(struct pci_dev *pdev)
dprintk(KERN_INFO PFX "Resuming...\n"); dprintk(KERN_INFO PFX "Resuming...\n");
pci_set_power_state(pdev, 0); pci_set_power_state(pdev, 0);
pci_enable_device(pdev); err = pci_enable_device(pdev);
if (err) {
printk(KERN_ERR PFX "Failure with pci_enable_device!\n");
return err;
}
pci_restore_state(pdev); pci_restore_state(pdev);
bcm43xx_chipset_attach(bcm); bcm43xx_chipset_attach(bcm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment