Commit 2650ef42 authored by Aaron Lu's avatar Aaron Lu Committed by Rafael J. Wysocki

ACPI / scan: do not scan fixed hardware on HW-reduced platform

Fixed hardware does not exist on HW-reduced ACPI platforms since the
programming interface for them is not implemented on them, so no need
to scan that hardware on them.

This patch avoids creating the fixed power button ACPI device and
eliminates a probe error message from ACPI button driver on ASUS T100.
Signed-off-by: default avatarAaron Lu <aaron.lu@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent d1db0eea
...@@ -2259,13 +2259,17 @@ int __init acpi_scan_init(void) ...@@ -2259,13 +2259,17 @@ int __init acpi_scan_init(void)
if (result) if (result)
goto out; goto out;
/* Fixed feature devices do not exist on HW-reduced platform */
if (!acpi_gbl_reduced_hardware) {
result = acpi_bus_scan_fixed(); result = acpi_bus_scan_fixed();
if (result) { if (result) {
acpi_detach_data(acpi_root->handle, acpi_scan_drop_device); acpi_detach_data(acpi_root->handle,
acpi_scan_drop_device);
acpi_device_del(acpi_root); acpi_device_del(acpi_root);
put_device(&acpi_root->dev); put_device(&acpi_root->dev);
goto out; goto out;
} }
}
acpi_update_all_gpes(); acpi_update_all_gpes();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment