[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <4e176b0f00143e2dfca4480402d3b27b3a0f835f.1247025117.git.len.brown@intel.com>
Date: Wed, 08 Jul 2009 00:13:56 -0400
From: Len Brown <lenb@...nel.org>
To: x86@...nel.org, sfi-devel@...plefirmware.org,
linux-kernel@...r.kernel.org, linux-acpi@...r.kernel.org
Cc: Len Brown <len.brown@...el.com>, Feng Tang <feng.tang@...el.com>
Subject: [PATCH 10/12] ACPI: check acpi_disabled in acpi_table_parse()
From: Len Brown <len.brown@...el.com>
Allow consumers of the acpi_table_parse() API
to gracefully handle the acpi_disabled=1 case
without checking the flag themselves.
Signed-off-by: Feng Tang <feng.tang@...el.com>
Signed-off-by: Len Brown <len.brown@...el.com>
---
drivers/acpi/tables.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c
index 646d39c..921746f 100644
--- a/drivers/acpi/tables.c
+++ b/drivers/acpi/tables.c
@@ -277,6 +277,9 @@ int __init acpi_table_parse(char *id, acpi_table_handler handler)
struct acpi_table_header *table = NULL;
acpi_size tbl_size;
+ if (acpi_disabled)
+ return 1;
+
if (!handler)
return -EINVAL;
--
1.6.0.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists