From patchwork Wed Dec 9 01:36:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrique de Moraes Holschuh X-Patchwork-Id: 65847 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 nB91aeGJ030776 for ; Wed, 9 Dec 2009 01:36:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967099AbZLIBgd (ORCPT ); Tue, 8 Dec 2009 20:36:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S967096AbZLIBgd (ORCPT ); Tue, 8 Dec 2009 20:36:33 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:52536 "EHLO out1.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967094AbZLIBgc (ORCPT ); Tue, 8 Dec 2009 20:36:32 -0500 Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id 41333C56C0; Tue, 8 Dec 2009 20:36:39 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 08 Dec 2009 20:36:39 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; s=smtpout; bh=0Fzfrh4CEu6Z+1iBOrOYSfgMMiM=; b=ZRDWH20ffPJTG8PYqw935Rsmj/9xQmS0zeNNK0PKt8cNxUw6lYwCsfLhz46Jr1ARx6FP6qZnEyYdZDdTU7I9ZtlRIQLsSu7CaIWbS22OUeRvm7gT7q1mhgVuulFjXXZVPykmnzYRjC6bRQsdHL8T6H69/ptAtv2DwCkddrkj540= X-Sasl-enc: tm2TujEamsZtYDjwbfdLK2a73575PL6dueLfjxYGuH7A 1260322598 Received: from khazad-dum.debian.net (unknown [201.82.165.62]) by mail.messagingengine.com (Postfix) with ESMTPSA id D7D8D1FE28; Tue, 8 Dec 2009 20:36:38 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by localhost.khazad-dum.debian.net (Postfix) with ESMTP id 0F1A91000E; Tue, 8 Dec 2009 23:36:36 -0200 (BRST) X-Virus-Scanned: Debian amavisd-new at khazad-dum.debian.net Received: from khazad-dum.debian.net ([127.0.0.1]) by localhost (khazad-dum.debian.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id d3r35Fvn+vw5; Tue, 8 Dec 2009 23:36:35 -0200 (BRST) Received: by khazad-dum.debian.net (Postfix, from userid 1000) id AF58610011; Tue, 8 Dec 2009 23:36:33 -0200 (BRST) From: Henrique de Moraes Holschuh To: Len Brown Cc: linux-acpi@vger.kernel.org, ibm-acpi-devel@lists.sourceforge.net, Henrique de Moraes Holschuh Subject: [PATCH 05/10] thinkpad-acpi: silence bogus complain during rmmod Date: Tue, 8 Dec 2009 23:36:25 -0200 Message-Id: <1260322590-5571-6-git-send-email-hmh@hmh.eng.br> X-Mailer: git-send-email 1.6.5.2 In-Reply-To: <1260322590-5571-1-git-send-email-hmh@hmh.eng.br> References: <1260322590-5571-1-git-send-email-hmh@hmh.eng.br> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 4406136..86418cd 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -2189,7 +2189,8 @@ static int hotkey_mask_set(u32 mask) fwmask, hotkey_acpi_mask); } - hotkey_mask_warn_incomplete_mask(); + if (tpacpi_lifecycle != TPACPI_LIFE_EXITING) + hotkey_mask_warn_incomplete_mask(); return rc; }