]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
ACPI / processor: Pass processor object handle to acpi_bind_one()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 May 2013 08:40:56 +0000 (10:40 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Jun 2013 19:37:10 +0000 (21:37 +0200)
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>
drivers/acpi/acpi_processor.c

index cae2641e8d84befbf81937d7c6e21ea7624b6985..157e7389a5ff5e38172bdf8e483e6e4cde0f5294 100644 (file)
@@ -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;