ACPI / PM: Expose current status of ACPI power resources
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / acpi / scan.c
index 9761d58..9801837 100644 (file)
@@ -791,6 +791,9 @@ static void acpi_device_unregister(struct acpi_device *device)
 
        acpi_power_add_remove_device(device, false);
        acpi_device_remove_files(device);
+       if (device->remove)
+               device->remove(device);
+
        device_del(&device->dev);
        /*
         * Drop the reference counts of all power resources the device depends