From patchwork Tue Oct 19 08:11:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Gong X-Patchwork-Id: 264871 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9J88xHF010750 for ; Tue, 19 Oct 2010 08:08:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755333Ab0JSIIz (ORCPT ); Tue, 19 Oct 2010 04:08:55 -0400 Received: from mga01.intel.com ([192.55.52.88]:12624 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755302Ab0JSIIy (ORCPT ); Tue, 19 Oct 2010 04:08:54 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 19 Oct 2010 01:08:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.57,349,1283756400"; d="scan'208";a="618109188" Received: from gchen-debian.bj.intel.com ([172.16.182.104]) by fmsmga002.fm.intel.com with ESMTP; 19 Oct 2010 01:08:52 -0700 Received: from gchen by gchen-debian.bj.intel.com with local (Exim 4.69) (envelope-from ) id 1P87I1-0000ei-2D; Tue, 19 Oct 2010 16:11:21 +0800 From: Chen Gong To: linux-acpi@vger.kernel.org Cc: bjorn.helgaas@hp.com, yinghai@kernel.org, Chen Gong Subject: [PATCH] ACPI: eliminate hardcode for ACPI0007 _HID Date: Tue, 19 Oct 2010 16:11:20 +0800 Message-Id: <1287475880-2492-1-git-send-email-gong.chen@linux.intel.com> X-Mailer: git-send-email 1.7.3.1.120.g38a18 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 19 Oct 2010 08:09:35 +0000 (UTC) diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index bec561c..d99e6ae 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -346,5 +346,5 @@ void __init acpi_early_processor_set_pdc(void) acpi_walk_namespace(ACPI_TYPE_PROCESSOR, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, early_init_pdc, NULL, NULL, NULL); - acpi_get_devices("ACPI0007", early_init_pdc, NULL, NULL); + acpi_get_devices(ACPI_PROCESSOR_HID, early_init_pdc, NULL, NULL); } diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index 347eb21..caab792 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c @@ -90,7 +90,7 @@ static int acpi_processor_handle_eject(struct acpi_processor *pr); static const struct acpi_device_id processor_device_ids[] = { {ACPI_PROCESSOR_OBJECT_HID, 0}, - {"ACPI0007", 0}, + {ACPI_PROCESSOR_HID, 0}, {"", 0}, }; MODULE_DEVICE_TABLE(acpi, processor_device_ids); diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 23d78b4..46bf7bf 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h @@ -58,6 +58,7 @@ #define ACPI_POWER_HID "LNXPOWER" #define ACPI_PROCESSOR_OBJECT_HID "LNXCPU" +#define ACPI_PROCESSOR_HID "ACPI0007" #define ACPI_SYSTEM_HID "LNXSYSTM" #define ACPI_THERMAL_HID "LNXTHERM" #define ACPI_BUTTON_HID_POWERF "LNXPWRBN"