patch-2.4.27 linux-2.4.27/drivers/acpi/fan.c
Next file: linux-2.4.27/drivers/acpi/pci_irq.c
Previous file: linux-2.4.27/drivers/acpi/ec.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
2004-08-07 16:26:04.652346695 -0700
- Orig file:
linux-2.4.26/drivers/acpi/fan.c
- Orig date:
2004-02-18 05:36:31.000000000 -0800
diff -urN linux-2.4.26/drivers/acpi/fan.c linux-2.4.27/drivers/acpi/fan.c
@@ -151,6 +151,7 @@
acpi_fan_dir);
if (!acpi_device_dir(device))
return_VALUE(-ENODEV);
+ acpi_device_dir(device)->owner = THIS_MODULE;
}
/* 'status' [R/W] */
@@ -164,6 +165,7 @@
entry->read_proc = acpi_fan_read_state;
entry->write_proc = acpi_fan_write_state;
entry->data = acpi_driver_data(device);
+ entry->owner = THIS_MODULE;
}
return_VALUE(0);
@@ -177,6 +179,8 @@
ACPI_FUNCTION_TRACE("acpi_fan_remove_fs");
if (acpi_device_dir(device)) {
+ remove_proc_entry(ACPI_FAN_FILE_STATE,
+ acpi_device_dir(device));
remove_proc_entry(acpi_device_bid(device), acpi_fan_dir);
acpi_device_dir(device) = NULL;
}
@@ -267,6 +271,7 @@
acpi_fan_dir = proc_mkdir(ACPI_FAN_CLASS, acpi_root_dir);
if (!acpi_fan_dir)
return_VALUE(-ENODEV);
+ acpi_fan_dir->owner = THIS_MODULE;
result = acpi_bus_register_driver(&acpi_fan_driver);
if (result < 0) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)