Skip to content

Commit

Permalink
ACPI / processor: Pass processor object handle to acpi_bind_one()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki committed Jun 1, 2013
1 parent 2e19919 commit be54743
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/acpi/acpi_processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit be54743

Please sign in to comment.