projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d2b295
)
ACPI, APEI, ERST, Prevent erst_dbg from loading if ERST is disabled
author
Huang Ying
<ying.huang@intel.com>
Wed, 13 Jul 2011 05:14:13 +0000
(13:14 +0800)
committer
Len Brown
<len.brown@intel.com>
Thu, 14 Jul 2011 03:29:52 +0000
(23:29 -0400)
erst_dbg module can not work when ERST is disabled. So disable module
loading to provide clearer information to user.
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/apei/erst-dbg.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/apei/erst-dbg.c
b/drivers/acpi/apei/erst-dbg.c
index a4cfb64c86a157bcf8ae22730d6a7943e31af7e0..cb04aa43c33a411d4f43397d4485345a001866f9 100644
(file)
--- 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);
}