aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2022-01-11 17:52:00 +0100
committerRafael J. Wysocki <[email protected]>2022-01-12 15:58:49 +0100
commit681e7187aef46f8d4e0fd0ddd2f888e3e5533cb2 (patch)
treec1c6699087391f4f377bdbf27634370d4baef3e7 /net/lapb/lapb_in.c
parentb6c55b162bcee62c43c18e59f38a4590be543032 (diff)
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 <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Reviewed-by: Hans de Goede <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions