commit | e6c1067dc1becf6c00408f59e0efa28b8d206371 | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Apr 07 16:30:01 2021 +0200 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Thu Apr 08 19:55:40 2021 +0200 |
tree | 917518ea4f552e9319c860ddd77cd4c7111a94b4 | |
parent | e49d033bddf5b565044e2abe4241353959bc9120 [diff] |
ACPI: scan: Fold acpi_bus_type_and_status() into its caller There is only one caller of acpi_bus_type_and_status() which is acpi_bus_check_add(), so fold the former into the latter and use the observation that the initial status of the device is ACPI_STA_DEFAULT in all cases except for ACPI_BUS_TYPE_PROCESSOR to simplify the code. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>