[PATCH 2/3] ACPI, APEI, ERST, Prevent erst_dbg from loading if ERST is disabled
From: Huang Ying
Date: Mon Jun 27 2011 - 21:18:24 EST
- Next message: Huang Ying: "[PATCH 3/3] ACPI, APEI, ERST, Fix erst-dbg long record reading issue"
- Previous message: Huang Ying: "[PATCH 0/3] ACPI, APEI, Fixes for 3.0"
- In reply to: Huang Ying: "[PATCH 0/3] ACPI, APEI, Fixes for 3.0"
- Next in thread: Huang Ying: "[PATCH 3/3] ACPI, APEI, ERST, Fix erst-dbg long record reading issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
erst_dbg module can not work with ERST is disabled. So disable module
loading to provide clearer information to user.
Signed-off-by: Huang Ying <ying.huang@xxxxxxxxx>
---
drivers/acpi/apei/erst-dbg.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/drivers/acpi/apei/erst-dbg.c
+++ b/drivers/acpi/apei/erst-dbg.c
@@ -213,6 +213,10 @@ static struct miscdevice erst_dbg_dev =
static __init int erst_dbg_init(void)
{
+ if (erst_disable) {
+ pr_info(ERST_DBG_PFX "ERST support is disabled.\n");
+ return -ENODEV;
+ }
return misc_register(&erst_dbg_dev);
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Next message: Huang Ying: "[PATCH 3/3] ACPI, APEI, ERST, Fix erst-dbg long record reading issue"
- Previous message: Huang Ying: "[PATCH 0/3] ACPI, APEI, Fixes for 3.0"
- In reply to: Huang Ying: "[PATCH 0/3] ACPI, APEI, Fixes for 3.0"
- Next in thread: Huang Ying: "[PATCH 3/3] ACPI, APEI, ERST, Fix erst-dbg long record reading issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]