patch-2.4.27 linux-2.4.27/drivers/acpi/processor.c
Next file: linux-2.4.27/drivers/acpi/tables.c
Previous file: linux-2.4.27/drivers/acpi/power.c
Back to the patch index
Back to the overall index
- Lines: 56
- Date:
2004-08-07 16:26:04.657346901 -0700
- Orig file:
linux-2.4.26/drivers/acpi/processor.c
- Orig date:
2004-04-14 06:05:29.000000000 -0700
diff -urN linux-2.4.26/drivers/acpi/processor.c linux-2.4.27/drivers/acpi/processor.c
@@ -2011,6 +2011,7 @@
if (!acpi_device_dir(device))
return_VALUE(-ENODEV);
}
+ acpi_device_dir(device)->owner = THIS_MODULE;
/* 'info' [R] */
entry = create_proc_entry(ACPI_PROCESSOR_FILE_INFO,
@@ -2022,6 +2023,7 @@
else {
entry->read_proc = acpi_processor_read_info;
entry->data = acpi_driver_data(device);
+ entry->owner = THIS_MODULE;
}
/* 'power' [R] */
@@ -2034,6 +2036,7 @@
else {
entry->read_proc = acpi_processor_read_power;
entry->data = acpi_driver_data(device);
+ entry->owner = THIS_MODULE;
}
/* 'performance' [R/W] */
@@ -2047,6 +2050,7 @@
entry->read_proc = acpi_processor_read_performance;
entry->write_proc = acpi_processor_write_performance;
entry->data = acpi_driver_data(device);
+ entry->owner = THIS_MODULE;
}
/* 'throttling' [R/W] */
@@ -2060,6 +2064,7 @@
entry->read_proc = acpi_processor_read_throttling;
entry->write_proc = acpi_processor_write_throttling;
entry->data = acpi_driver_data(device);
+ entry->owner = THIS_MODULE;
}
/* 'limit' [R/W] */
@@ -2073,6 +2078,7 @@
entry->read_proc = acpi_processor_read_limit;
entry->write_proc = acpi_processor_write_limit;
entry->data = acpi_driver_data(device);
+ entry->owner = THIS_MODULE;
}
return_VALUE(0);
@@ -2349,6 +2355,7 @@
acpi_processor_dir = proc_mkdir(ACPI_PROCESSOR_CLASS, acpi_root_dir);
if (!acpi_processor_dir)
return_VALUE(-ENODEV);
+ acpi_processor_dir->owner = THIS_MODULE;
result = acpi_bus_register_driver(&acpi_processor_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)