diff options
author | Yinghai Lu <yinghai@kernel.org> | 2013-01-12 14:00:06 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-12 14:00:06 +0100 |
commit | a412a11d6a24aebb6a898ed5d4e1c0725b638da3 (patch) | |
tree | de1f9c2dd4590fdc1a14ad46db62e3e15e141f5e /drivers/acpi | |
parent | 392370e7aa387185349946d29a0e17b918e51ae6 (diff) | |
download | blackbird-op-linux-a412a11d6a24aebb6a898ed5d4e1c0725b638da3.tar.gz blackbird-op-linux-a412a11d6a24aebb6a898ed5d4e1c0725b638da3.zip |
ACPI / glue: Fix build with ACPI_GLUE_DEBUG set
If ACPI_GLUE_DEBUG is different from 0 (setting this requires a
manual change of glue.c), build breaks because of a leftover
reference to dev->acpi_handle in acpi_platform_notify(). Fix this
by using ACPI_HANDLE(dev) instead as appropriate.
[rjw: Subject and changelog]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/glue.c b/drivers/acpi/glue.c index 95af6f674a6c..35da18113216 100644 --- a/drivers/acpi/glue.c +++ b/drivers/acpi/glue.c @@ -297,7 +297,7 @@ static int acpi_platform_notify(struct device *dev) if (!ret) { struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; - acpi_get_name(dev->acpi_handle, ACPI_FULL_PATHNAME, &buffer); + acpi_get_name(ACPI_HANDLE(dev), ACPI_FULL_PATHNAME, &buffer); DBG("Device %s -> %s\n", dev_name(dev), (char *)buffer.pointer); kfree(buffer.pointer); } else |