Home
last modified time | relevance | path

Searched hist:"681 e7187aef46f8d4e0fd0ddd2f888e3e5533cb2" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/acpi/
H A Dscan.cdiff 681e7187aef46f8d4e0fd0ddd2f888e3e5533cb2 Tue Jan 11 10:52:00 CST 2022 Rafael J. Wysocki <rafael.j.wysocki@intel.com> ACPI: scan: Simplify initialization of power and sleep buttons

It should be perfectly fine to use ACPI if the "fixed" power or sleep
buttons cannot be initialized. Moreover, running acpi_bus_scan()
successfully on ACPI_ROOT_OBJECT generally causes many devices to
be enumerated and probed, possibly including the entire PCI bus, so
unregistering acpi_root if the registration of the "fixed" buttons
fails is rather unhelpful.

For this reason, do not fail acpi_scan_init() when
acpi_bus_scan_fixed() fails and turn the latter into a void function.

While at it, drop the outdated and misleading comment from
acpi_bus_scan_fixed().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>