From patchwork Fri Oct 9 20:12:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Castet X-Patchwork-Id: 52804 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n99KGDVa027791 for ; Fri, 9 Oct 2009 20:16:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758804AbZJIUNP (ORCPT ); Fri, 9 Oct 2009 16:13:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757749AbZJIUNP (ORCPT ); Fri, 9 Oct 2009 16:13:15 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:50315 "EHLO smtp2-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757477AbZJIUNP (ORCPT ); Fri, 9 Oct 2009 16:13:15 -0400 Received: from smtp2-g21.free.fr (localhost [127.0.0.1]) by smtp2-g21.free.fr (Postfix) with ESMTP id 2328B4B006B for ; Fri, 9 Oct 2009 22:12:28 +0200 (CEST) Received: from [192.168.0.3] (cac94-1-81-57-151-96.fbx.proxad.net [81.57.151.96]) by smtp2-g21.free.fr (Postfix) with ESMTP id 342DB4B0016 for ; Fri, 9 Oct 2009 22:12:26 +0200 (CEST) Message-ID: <4ACF9929.7060706@free.fr> Date: Fri, 09 Oct 2009 22:12:25 +0200 From: matthieu castet User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.22) Gecko/20090605 Iceape/1.1.17 (Debian-1.1.17-2) MIME-Version: 1.0 To: linux-wireless@vger.kernel.org Subject: [PATCH] airo : allow supend with card without power management Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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)