Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca7cc511 authored by Huang Ying's avatar Huang Ying Committed by Len Brown
Browse files

ACPI, APEI, ERST, Prevent erst_dbg from loading if ERST is disabled



erst_dbg module can not work when ERST is disabled.  So disable module
loading to provide clearer information to user.

Signed-off-by: default avatarHuang Ying <ying.huang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 4d2b2956
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -213,6 +213,10 @@ static struct miscdevice erst_dbg_dev = {


static __init int erst_dbg_init(void)
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);
	return misc_register(&erst_dbg_dev);
}
}