diff options
Diffstat (limited to 'drivers/acpi/parser/psopcode.c')
| -rw-r--r-- | drivers/acpi/parser/psopcode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/parser/psopcode.c b/drivers/acpi/parser/psopcode.c index 11d6351ab8b2..4bd25e32769f 100644 --- a/drivers/acpi/parser/psopcode.c +++ b/drivers/acpi/parser/psopcode.c | |||
| @@ -725,12 +725,13 @@ static const u8 acpi_gbl_long_op_index[NUM_EXTENDED_OPCODE] = { | |||
| 725 | 725 | ||
| 726 | const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode) | 726 | const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode) |
| 727 | { | 727 | { |
| 728 | ACPI_FUNCTION_NAME("ps_get_opcode_info"); | 728 | ACPI_FUNCTION_NAME(ps_get_opcode_info); |
| 729 | 729 | ||
| 730 | /* | 730 | /* |
| 731 | * Detect normal 8-bit opcode or extended 16-bit opcode | 731 | * Detect normal 8-bit opcode or extended 16-bit opcode |
| 732 | */ | 732 | */ |
| 733 | if (!(opcode & 0xFF00)) { | 733 | if (!(opcode & 0xFF00)) { |
| 734 | |||
| 734 | /* Simple (8-bit) opcode: 0-255, can't index beyond table */ | 735 | /* Simple (8-bit) opcode: 0-255, can't index beyond table */ |
| 735 | 736 | ||
| 736 | return (&acpi_gbl_aml_op_info | 737 | return (&acpi_gbl_aml_op_info |
| @@ -739,6 +740,7 @@ const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode) | |||
| 739 | 740 | ||
| 740 | if (((opcode & 0xFF00) == AML_EXTENDED_OPCODE) && | 741 | if (((opcode & 0xFF00) == AML_EXTENDED_OPCODE) && |
| 741 | (((u8) opcode) <= MAX_EXTENDED_OPCODE)) { | 742 | (((u8) opcode) <= MAX_EXTENDED_OPCODE)) { |
| 743 | |||
| 742 | /* Valid extended (16-bit) opcode */ | 744 | /* Valid extended (16-bit) opcode */ |
| 743 | 745 | ||
| 744 | return (&acpi_gbl_aml_op_info | 746 | return (&acpi_gbl_aml_op_info |
| @@ -779,7 +781,7 @@ char *acpi_ps_get_opcode_name(u16 opcode) | |||
| 779 | return (op->name); | 781 | return (op->name); |
| 780 | 782 | ||
| 781 | #else | 783 | #else |
| 782 | return ("AE_NOT_CONFIGURED"); | 784 | return ("OpcodeName unavailable"); |
| 783 | 785 | ||
| 784 | #endif | 786 | #endif |
| 785 | } | 787 | } |
