diff options
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r-- | drivers/acpi/processor_idle.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 0a395fca843b..4504684671f6 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -671,7 +671,7 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr) | |||
671 | return -ENODEV; | 671 | return -ENODEV; |
672 | } | 672 | } |
673 | 673 | ||
674 | cst = (union acpi_object *)buffer.pointer; | 674 | cst = buffer.pointer; |
675 | 675 | ||
676 | /* There must be at least 2 elements */ | 676 | /* There must be at least 2 elements */ |
677 | if (!cst || (cst->type != ACPI_TYPE_PACKAGE) || cst->package.count < 2) { | 677 | if (!cst || (cst->type != ACPI_TYPE_PACKAGE) || cst->package.count < 2) { |
@@ -700,14 +700,14 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr) | |||
700 | 700 | ||
701 | memset(&cx, 0, sizeof(cx)); | 701 | memset(&cx, 0, sizeof(cx)); |
702 | 702 | ||
703 | element = (union acpi_object *)&(cst->package.elements[i]); | 703 | element = &(cst->package.elements[i]); |
704 | if (element->type != ACPI_TYPE_PACKAGE) | 704 | if (element->type != ACPI_TYPE_PACKAGE) |
705 | continue; | 705 | continue; |
706 | 706 | ||
707 | if (element->package.count != 4) | 707 | if (element->package.count != 4) |
708 | continue; | 708 | continue; |
709 | 709 | ||
710 | obj = (union acpi_object *)&(element->package.elements[0]); | 710 | obj = &(element->package.elements[0]); |
711 | 711 | ||
712 | if (obj->type != ACPI_TYPE_BUFFER) | 712 | if (obj->type != ACPI_TYPE_BUFFER) |
713 | continue; | 713 | continue; |
@@ -722,7 +722,7 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr) | |||
722 | 0 : reg->address; | 722 | 0 : reg->address; |
723 | 723 | ||
724 | /* There should be an easy way to extract an integer... */ | 724 | /* There should be an easy way to extract an integer... */ |
725 | obj = (union acpi_object *)&(element->package.elements[1]); | 725 | obj = &(element->package.elements[1]); |
726 | if (obj->type != ACPI_TYPE_INTEGER) | 726 | if (obj->type != ACPI_TYPE_INTEGER) |
727 | continue; | 727 | continue; |
728 | 728 | ||
@@ -735,13 +735,13 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr) | |||
735 | if ((cx.type < ACPI_STATE_C2) || (cx.type > ACPI_STATE_C3)) | 735 | if ((cx.type < ACPI_STATE_C2) || (cx.type > ACPI_STATE_C3)) |
736 | continue; | 736 | continue; |
737 | 737 | ||
738 | obj = (union acpi_object *)&(element->package.elements[2]); | 738 | obj = &(element->package.elements[2]); |
739 | if (obj->type != ACPI_TYPE_INTEGER) | 739 | if (obj->type != ACPI_TYPE_INTEGER) |
740 | continue; | 740 | continue; |
741 | 741 | ||
742 | cx.latency = obj->integer.value; | 742 | cx.latency = obj->integer.value; |
743 | 743 | ||
744 | obj = (union acpi_object *)&(element->package.elements[3]); | 744 | obj = &(element->package.elements[3]); |
745 | if (obj->type != ACPI_TYPE_INTEGER) | 745 | if (obj->type != ACPI_TYPE_INTEGER) |
746 | continue; | 746 | continue; |
747 | 747 | ||
@@ -1004,7 +1004,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr) | |||
1004 | 1004 | ||
1005 | static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset) | 1005 | static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset) |
1006 | { | 1006 | { |
1007 | struct acpi_processor *pr = (struct acpi_processor *)seq->private; | 1007 | struct acpi_processor *pr = seq->private; |
1008 | unsigned int i; | 1008 | unsigned int i; |
1009 | 1009 | ||
1010 | 1010 | ||