ACPI: processor: move device _HID into driver
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 27 Apr 2009 22:33:46 +0000 (16:33 -0600)
committerLen Brown <len.brown@intel.com>
Thu, 28 May 2009 01:14:28 +0000 (21:14 -0400)
The ACPI0007 _HID used for processor "Device" objects in the namespace
is not needed outside the processor driver, so move it there.  Also, the
#define is only used once, so just remove it and hard-code "ACPI0007".

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_core.c
include/acpi/acpi_drivers.h

index cf627d64cde9d9a2d45536043e988ecb80d75e26..cabff4cb21f08d4f23795adba67848d92a769d7f 100644 (file)
@@ -89,7 +89,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},
-       {ACPI_PROCESSOR_HID, 0},
+       {"ACPI0007", 0},
        {"", 0},
 };
 MODULE_DEVICE_TABLE(acpi, processor_device_ids);
index c9922b3620059e40ea9994c588b16920af2a8181..5e8ed3a78cd07fa5016c8a5230011aa35684cc9e 100644 (file)
@@ -58,7 +58,6 @@
 
 #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"