ACPI / scan: Treat power resources in a special way
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / acpi / scan.c
index f8a0d0f..e380345 100644 (file)
@@ -1558,7 +1558,8 @@ static acpi_status acpi_bus_check_add(acpi_handle handle, u32 lvl_not_used,
                return AE_CTRL_DEPTH;
        }
 
-       acpi_add_single_object(&device, handle, type, sta, false);
+       acpi_add_single_object(&device, handle, type, sta,
+                              type == ACPI_BUS_TYPE_POWER);
        if (!device)
                return AE_CTRL_DEPTH;