diff options
author | John Keller <jpk@sgi.com> | 2007-02-16 16:07:27 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-02-16 22:07:36 -0500 |
commit | db2d4ccdc8f9f3433d3a8566404189f2e9295c23 (patch) | |
tree | 31cf5f1e3bee89b2e9c172721593ca89cc23f126 /arch/ia64/kernel/acpi.c | |
parent | 6eb87fed52b7f6ac200eaa649cc3221e239d0113 (diff) |
ACPI: IA64: react to acpi_table_parse() return value change
acpi_boot_init() is making a bad check on the return
status from acpi_table_parse(). acpi_table_parse() now
returns zero on success, one on failure.
Signed-off-by: Aaron Young <ayoung@sgi.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch/ia64/kernel/acpi.c')
-rw-r--r-- | arch/ia64/kernel/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c index 9197d7b361b3..3549c94467b8 100644 --- a/arch/ia64/kernel/acpi.c +++ b/arch/ia64/kernel/acpi.c | |||
@@ -651,7 +651,7 @@ int __init acpi_boot_init(void) | |||
651 | * information -- the successor to MPS tables. | 651 | * information -- the successor to MPS tables. |
652 | */ | 652 | */ |
653 | 653 | ||
654 | if (acpi_table_parse(ACPI_SIG_MADT, acpi_parse_madt) < 1) { | 654 | if (acpi_table_parse(ACPI_SIG_MADT, acpi_parse_madt)) { |
655 | printk(KERN_ERR PREFIX "Can't find MADT\n"); | 655 | printk(KERN_ERR PREFIX "Can't find MADT\n"); |
656 | goto skip_madt; | 656 | goto skip_madt; |
657 | } | 657 | } |
@@ -702,7 +702,7 @@ int __init acpi_boot_init(void) | |||
702 | * gets interrupts such as power and sleep buttons. If it's not | 702 | * gets interrupts such as power and sleep buttons. If it's not |
703 | * on a Legacy interrupt, it needs to be setup. | 703 | * on a Legacy interrupt, it needs to be setup. |
704 | */ | 704 | */ |
705 | if (acpi_table_parse(ACPI_SIG_FADT, acpi_parse_fadt) < 1) | 705 | if (acpi_table_parse(ACPI_SIG_FADT, acpi_parse_fadt)) |
706 | printk(KERN_ERR PREFIX "Can't find FADT\n"); | 706 | printk(KERN_ERR PREFIX "Can't find FADT\n"); |
707 | 707 | ||
708 | #ifdef CONFIG_SMP | 708 | #ifdef CONFIG_SMP |