diff options
Diffstat (limited to 'drivers/acpi/processor_perflib.c')
-rw-r--r-- | drivers/acpi/processor_perflib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c index 7ba5e49ab302..39fdbcc37d43 100644 --- a/drivers/acpi/processor_perflib.c +++ b/drivers/acpi/processor_perflib.c | |||
@@ -238,7 +238,7 @@ static int acpi_processor_get_performance_states(struct acpi_processor *pr) | |||
238 | return -ENODEV; | 238 | return -ENODEV; |
239 | } | 239 | } |
240 | 240 | ||
241 | pss = (union acpi_object *)buffer.pointer; | 241 | pss = buffer.pointer; |
242 | if (!pss || (pss->type != ACPI_TYPE_PACKAGE)) { | 242 | if (!pss || (pss->type != ACPI_TYPE_PACKAGE)) { |
243 | printk(KERN_ERR PREFIX "Invalid _PSS data\n"); | 243 | printk(KERN_ERR PREFIX "Invalid _PSS data\n"); |
244 | result = -EFAULT; | 244 | result = -EFAULT; |
@@ -412,7 +412,7 @@ static struct file_operations acpi_processor_perf_fops = { | |||
412 | 412 | ||
413 | static int acpi_processor_perf_seq_show(struct seq_file *seq, void *offset) | 413 | static int acpi_processor_perf_seq_show(struct seq_file *seq, void *offset) |
414 | { | 414 | { |
415 | struct acpi_processor *pr = (struct acpi_processor *)seq->private; | 415 | struct acpi_processor *pr = seq->private; |
416 | int i; | 416 | int i; |
417 | 417 | ||
418 | 418 | ||
@@ -453,8 +453,8 @@ acpi_processor_write_performance(struct file *file, | |||
453 | size_t count, loff_t * data) | 453 | size_t count, loff_t * data) |
454 | { | 454 | { |
455 | int result = 0; | 455 | int result = 0; |
456 | struct seq_file *m = (struct seq_file *)file->private_data; | 456 | struct seq_file *m = file->private_data; |
457 | struct acpi_processor *pr = (struct acpi_processor *)m->private; | 457 | struct acpi_processor *pr = m->private; |
458 | struct acpi_processor_performance *perf; | 458 | struct acpi_processor_performance *perf; |
459 | char state_string[12] = { '\0' }; | 459 | char state_string[12] = { '\0' }; |
460 | unsigned int new_state = 0; | 460 | unsigned int new_state = 0; |
@@ -553,7 +553,7 @@ static int acpi_processor_get_psd(struct acpi_processor *pr) | |||
553 | return -ENODEV; | 553 | return -ENODEV; |
554 | } | 554 | } |
555 | 555 | ||
556 | psd = (union acpi_object *) buffer.pointer; | 556 | psd = buffer.pointer; |
557 | if (!psd || (psd->type != ACPI_TYPE_PACKAGE)) { | 557 | if (!psd || (psd->type != ACPI_TYPE_PACKAGE)) { |
558 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid _PSD data\n")); | 558 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid _PSD data\n")); |
559 | result = -EFAULT; | 559 | result = -EFAULT; |