]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/acpi/sysfs.c
Merge branches 'acpi-button', 'acpica' and 'acpi-sysfs'
[karo-tx-linux.git] / drivers / acpi / sysfs.c
index 5180fef9eb4913c347a487741657ecbd31d2fc79..e414fabf73158d77fba356be2c10354647e81a44 100644 (file)
@@ -924,7 +924,7 @@ void acpi_sysfs_add_hotplug_profile(struct acpi_hotplug_profile *hotplug,
 static ssize_t force_remove_show(struct kobject *kobj,
                                 struct kobj_attribute *attr, char *buf)
 {
-       return sprintf(buf, "%d\n", !!acpi_force_hot_remove);
+       return sprintf(buf, "%d\n", 0);
 }
 
 static ssize_t force_remove_store(struct kobject *kobj,
@@ -938,9 +938,10 @@ static ssize_t force_remove_store(struct kobject *kobj,
        if (ret < 0)
                return ret;
 
-       lock_device_hotplug();
-       acpi_force_hot_remove = val;
-       unlock_device_hotplug();
+       if (val) {
+               pr_err("Enabling force_remove is not supported anymore. Please report to linux-acpi@vger.kernel.org if you depend on this functionality\n");
+               return -EINVAL;
+       }
        return size;
 }