patch-2.4.27 linux-2.4.27/drivers/acpi/ec.c

Next file: linux-2.4.27/drivers/acpi/fan.c
Previous file: linux-2.4.27/drivers/acpi/button.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/drivers/acpi/ec.c linux-2.4.27/drivers/acpi/ec.c
@@ -544,6 +544,12 @@
 {
 	ACPI_FUNCTION_TRACE("acpi_ec_remove_fs");
 
+	if (acpi_device_dir(device)) {
+		remove_proc_entry(ACPI_EC_FILE_INFO, acpi_device_dir(device));
+		remove_proc_entry(acpi_device_bid(device), acpi_ec_dir);
+		acpi_device_dir(device) = NULL;
+	}
+
 	return_VALUE(0);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)