From patchwork Sat Aug 29 08:28:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Chary X-Patchwork-Id: 44676 X-Patchwork-Delegate: lenb@kernel.org 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 n7T8TdT8029183 for ; Sat, 29 Aug 2009 08:29:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750813AbZH2I3e (ORCPT ); Sat, 29 Aug 2009 04:29:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751195AbZH2I3e (ORCPT ); Sat, 29 Aug 2009 04:29:34 -0400 Received: from smtp23.services.sfr.fr ([93.17.128.20]:59673 "EHLO smtp23.services.sfr.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750813AbZH2I3d (ORCPT ); Sat, 29 Aug 2009 04:29:33 -0400 Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2326.sfr.fr (SMTP Server) with ESMTP id 55CCD700009B; Sat, 29 Aug 2009 10:29:33 +0200 (CEST) Received: from localhost.localdomain (27.14.98-84.rev.gaoland.net [84.98.14.27]) by msfrf2326.sfr.fr (SMTP Server) with ESMTP id EA511700009A; Sat, 29 Aug 2009 10:29:32 +0200 (CEST) X-SFR-UUID: 20090829082932959.EA511700009A@msfrf2326.sfr.fr From: Corentin Chary To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org, alan-jenkins@tuffmail.co.uk, Corentin Chary Subject: [PATCH 3/3] eeepc-laptop: allow rfkill hotplug to work on the 900A model Date: Sat, 29 Aug 2009 10:28:31 +0200 Message-Id: <1251534511-8479-3-git-send-email-corentincj@iksaif.net> X-Mailer: git-send-email 1.6.4.1 In-Reply-To: <1251534511-8479-2-git-send-email-corentincj@iksaif.net> References: <1251534511-8479-1-git-send-email-corentincj@iksaif.net> <1251534511-8479-2-git-send-email-corentincj@iksaif.net> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Alan Jenkins The 900A provides hotplug notifications on a different ACPI object to other models. Reported-by: Trevor Signed-off-by: Alan Jenkins Signed-off-by: Corentin Chary --- drivers/platform/x86/eeepc-laptop.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 6f9a448..da3c08b 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c @@ -981,6 +981,7 @@ static void eeepc_backlight_exit(void) static void eeepc_rfkill_exit(void) { + eeepc_unregister_rfkill_notifier("\\_SB.PCI0.P0P5"); eeepc_unregister_rfkill_notifier("\\_SB.PCI0.P0P6"); eeepc_unregister_rfkill_notifier("\\_SB.PCI0.P0P7"); if (ehotk->wlan_rfkill) { @@ -1101,6 +1102,7 @@ static int eeepc_rfkill_init(struct device *dev) if (result == -EBUSY) result = 0; + eeepc_register_rfkill_notifier("\\_SB.PCI0.P0P5"); eeepc_register_rfkill_notifier("\\_SB.PCI0.P0P6"); eeepc_register_rfkill_notifier("\\_SB.PCI0.P0P7"); /*