From patchwork Wed Aug 19 09:39:03 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Jenkins X-Patchwork-Id: 42554 X-Patchwork-Delegate: corentincj@iksaif.net 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 n7J9eCav000530 for ; Wed, 19 Aug 2009 09:40:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751529AbZHSJjK (ORCPT ); Wed, 19 Aug 2009 05:39:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751287AbZHSJjI (ORCPT ); Wed, 19 Aug 2009 05:39:08 -0400 Received: from mail-bw0-f219.google.com ([209.85.218.219]:37535 "EHLO mail-bw0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751493AbZHSJjF (ORCPT ); Wed, 19 Aug 2009 05:39:05 -0400 Received: by bwz19 with SMTP id 19so4638101bwz.37 for ; Wed, 19 Aug 2009 02:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=X3V+YQ+lyFiV/ohrfgFlw4Vh4gnFqlZcUYQCIbAl11E=; b=dhvPsR/K8rLna632ls3yzbwhm2fZNd3k9Vns7Mn0kjdUjSVXd/4WtMi8uM9cR1AeFi jjAOqzIH1n15JlbKwBDVRXin5o0x8wlh8ck8YbVpeEgz+AUDLvBp/Nrzclupoo3tCuoM Y5Fr02gkqdX2o5rJbvhT5H+d+fmuH7wBHZB6U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=h76Mdoxkfo1Izxr6UJ+RrE3RXF57NderE+M676mHPMomyrXB35Zq+Seak+L2UKV+hv lJBGTvw3HZRIF9om9g3x4a2xipNzA4utMWluWsNTdtnbdhj6/NSp9X30zhG2Y8jdrQKP m7ByZa8kqKQ0m6KtXzLFe7D/dBjfhA/H3x2NQ= Received: by 10.210.112.1 with SMTP id k1mr4576540ebc.5.1250674745574; Wed, 19 Aug 2009 02:39:05 -0700 (PDT) Received: from ?192.168.0.5? ([86.53.68.233]) by mx.google.com with ESMTPS id 7sm2886326eyg.57.2009.08.19.02.39.04 (version=SSLv3 cipher=RC4-MD5); Wed, 19 Aug 2009 02:39:05 -0700 (PDT) Message-ID: <4A8BC837.30206@tuffmail.co.uk> Date: Wed, 19 Aug 2009 10:39:03 +0100 From: Alan Jenkins User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: Corentin Chary CC: Trevor , linux acpi , linux-kernel Subject: [PATCH 2/2] eeepc-laptop: allow rfkill hotplug to work on the 900A model Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org The 900A provides hotplug notifications on a different ACPI object to other models. Reported-by: Trevor Signed-off-by: Alan Jenkins --- 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 36d613b..7528b4f 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c @@ -977,6 +977,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) { @@ -1083,6 +1084,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"); /*