From patchwork Fri Jul 31 21:36:48 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 38597 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 n6VLab3t017169 for ; Fri, 31 Jul 2009 21:36:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753073AbZGaVgv (ORCPT ); Fri, 31 Jul 2009 17:36:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753086AbZGaVgv (ORCPT ); Fri, 31 Jul 2009 17:36:51 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:32304 "EHLO g4t0017.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753068AbZGaVgu (ORCPT ); Fri, 31 Jul 2009 17:36:50 -0400 Received: from g4t0018.houston.hp.com (g4t0018.houston.hp.com [16.234.32.27]) by g4t0017.houston.hp.com (Postfix) with ESMTP id 9FB9838218; Fri, 31 Jul 2009 21:36:51 +0000 (UTC) Received: from ldl.fc.hp.com (ldl.fc.hp.com [15.11.146.30]) by g4t0018.houston.hp.com (Postfix) with ESMTP id 87FAD1000F; Fri, 31 Jul 2009 21:36:51 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl.fc.hp.com (Postfix) with ESMTP id 50F3839C00E; Fri, 31 Jul 2009 15:36:51 -0600 (MDT) X-Virus-Scanned: Debian amavisd-new at ldl.fc.hp.com Received: from ldl.fc.hp.com ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xRKDtBR372+v; Fri, 31 Jul 2009 15:36:50 -0600 (MDT) Received: from eh.fc.hp.com (eh.fc.hp.com [15.11.146.105]) by ldl.fc.hp.com (Postfix) with ESMTP id CE92039C008; Fri, 31 Jul 2009 15:36:48 -0600 (MDT) Received: from bob.kio (localhost [127.0.0.1]) by eh.fc.hp.com (Postfix) with ESMTP id C160B26169; Fri, 31 Jul 2009 15:36:48 -0600 (MDT) Subject: [PATCH 03/19] ACPI: don't pass handle for fixed hardware notifications To: Len Brown From: Bjorn Helgaas Cc: linux-acpi@vger.kernel.org Date: Fri, 31 Jul 2009 15:36:48 -0600 Message-ID: <20090731213648.29930.29139.stgit@bob.kio> In-Reply-To: <20090731213501.29930.39957.stgit@bob.kio> References: <20090731213501.29930.39957.stgit@bob.kio> User-Agent: StGit/0.14.3.386.gb02d MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Fixed hardware devices have no handles, so just pass an explicit NULL rather than something that looks like it might be meaningful. acpi_device_notify() doesn't need the handle anyway; the only reason it takes it as an argument is because the acpi_notify_handler typedef requires it. Signed-off-by: Bjorn Helgaas --- drivers/acpi/scan.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 4a89f08..652d104 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -366,7 +366,8 @@ static acpi_status acpi_device_notify_fixed(void *data) { struct acpi_device *device = data; - acpi_device_notify(device->handle, ACPI_FIXED_HARDWARE_EVENT, device); + /* Fixed hardware devices have no handles */ + acpi_device_notify(NULL, ACPI_FIXED_HARDWARE_EVENT, device); return AE_OK; }