Skip to content

Commit a412a11

Browse files
Yinghai Lurafaeljw
authored andcommitted
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>
1 parent 392370e commit a412a11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/acpi/glue.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static int acpi_platform_notify(struct device *dev)
297297
if (!ret) {
298298
struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
299299

300-
acpi_get_name(dev->acpi_handle, ACPI_FULL_PATHNAME, &buffer);
300+
acpi_get_name(ACPI_HANDLE(dev), ACPI_FULL_PATHNAME, &buffer);
301301
DBG("Device %s -> %s\n", dev_name(dev), (char *)buffer.pointer);
302302
kfree(buffer.pointer);
303303
} else

0 commit comments

Comments
 (0)