Merge tag 'acpi-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[linux-2.6-block.git] / drivers / acpi / scan.c
index f456ba7c106004f8017e38a0ab9576c578c99d16..dce2c291b982b92fcbc0509a0e97a1a0a94cb336 100644 (file)
@@ -2560,6 +2560,12 @@ int __init acpi_scan_init(void)
                }
        }
 
+       /*
+        * Make sure that power management resources are not blocked by ACPI
+        * device objects with no users.
+        */
+       bus_for_each_dev(&acpi_bus_type, NULL, NULL, acpi_dev_turn_off_if_unused);
+
        acpi_turn_off_unused_power_resources();
 
        acpi_scan_initialized = true;