diff options
author | Arjan van de Ven <arjan@infradead.org> | 2006-01-06 16:47:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-07 04:19:08 -0500 |
commit | d479e908457f4972205fcafa054f8030e91781ef (patch) | |
tree | 1e3bacc19fc158a292807eabcd20012fb674d3ea /drivers/acpi/processor_perflib.c | |
parent | 0aec63e67c69545ca757a73a66f5dcf05fa484bf (diff) |
[ACPI] move some run-time structure inits to compile time
acpi_processor_limit_fops.write was written at run time,
but can be initiailized at compile-time instead.
Similar for acpi_video_bus_POST_fops.write and friends,
but keep doing those at runtime to avoid prototype-hell.
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/processor_perflib.c')
-rw-r--r-- | drivers/acpi/processor_perflib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c index 22c7bb66c200..0c0234e18261 100644 --- a/drivers/acpi/processor_perflib.c +++ b/drivers/acpi/processor_perflib.c | |||
@@ -520,8 +520,8 @@ static void acpi_cpufreq_add_file(struct acpi_processor *pr) | |||
520 | "Unable to create '%s' fs entry\n", | 520 | "Unable to create '%s' fs entry\n", |
521 | ACPI_PROCESSOR_FILE_PERFORMANCE)); | 521 | ACPI_PROCESSOR_FILE_PERFORMANCE)); |
522 | else { | 522 | else { |
523 | acpi_processor_perf_fops.write = acpi_processor_write_performance; | ||
523 | entry->proc_fops = &acpi_processor_perf_fops; | 524 | entry->proc_fops = &acpi_processor_perf_fops; |
524 | entry->proc_fops->write = acpi_processor_write_performance; | ||
525 | entry->data = acpi_driver_data(device); | 525 | entry->data = acpi_driver_data(device); |
526 | entry->owner = THIS_MODULE; | 526 | entry->owner = THIS_MODULE; |
527 | } | 527 | } |