diff mbox

airo : allow supend with card without power management

Message ID 4ACF9929.7060706@free.fr (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Matthieu Castet Oct. 9, 2009, 8:12 p.m. UTC
None
diff mbox

Patch

Index: linux-2.6/drivers/net/wireless/airo.c
===================================================================
--- linux-2.6.orig/drivers/net/wireless/airo.c	2009-10-09 22:06:24.000000000 +0200
+++ linux-2.6/drivers/net/wireless/airo.c	2009-10-09 22:06:38.000000000 +0200
@@ -5660,7 +5660,8 @@ 
 
 	pci_enable_wake(pdev, pci_choose_state(pdev, state), 1);
 	pci_save_state(pdev);
-	return pci_set_power_state(pdev, pci_choose_state(pdev, state));
+	pci_set_power_state(pdev, pci_choose_state(pdev, state));
+	return 0;
 }
 
 static int airo_pci_resume(struct pci_dev *pdev)