summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpi_processor.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-05-23 12:40:56 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-06-01 23:37:10 +0400
commitbe547436c22c3b7d934d9afd841cfd7a6807f7ab (patch)
tree66e77012040799afb7baa1c8a87372452d480a5d /drivers/acpi/acpi_processor.c
parent2e199192df85eb936a7829dc28b57b85c59c86fc (diff)
downloadlinux-be547436c22c3b7d934d9afd841cfd7a6807f7ab.tar.xz
ACPI / processor: Pass processor object handle to acpi_bind_one()
Make acpi_processor_add() pass the ACPI handle of the processor namespace object to acpi_bind_one() instead of setting it directly to allow acpi_bind_one() to catch possible bugs causing the ACPI handle of the processor device to be set earlier. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Toshi Kani <toshi.kani@hp.com>
Diffstat (limited to 'drivers/acpi/acpi_processor.c')
-rw-r--r--drivers/acpi/acpi_processor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c
index cae2641e8d84..157e7389a5ff 100644
--- a/drivers/acpi/acpi_processor.c
+++ b/drivers/acpi/acpi_processor.c
@@ -393,8 +393,7 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device,
per_cpu(processors, pr->id) = pr;
dev = get_cpu_device(pr->id);
- ACPI_HANDLE_SET(dev, pr->handle);
- result = acpi_bind_one(dev, NULL);
+ result = acpi_bind_one(dev, pr->handle);
if (result)
goto err;