提交 4afaf54b 编写于 作者: A Alexey Starikovskiy 提交者: Len Brown

ACPI: ibm_acpi: allow clean removal

Allow clean removal by setting notify_installed in the right place.
Signed-off-by: NAlexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 f9ff43a6
...@@ -2503,7 +2503,7 @@ static int __init setup_notify(struct ibm_struct *ibm) ...@@ -2503,7 +2503,7 @@ static int __init setup_notify(struct ibm_struct *ibm)
ibm->name, status); ibm->name, status);
return -ENODEV; return -ENODEV;
} }
ibm->notify_installed = 1;
return 0; return 0;
} }
...@@ -2580,7 +2580,6 @@ static int __init ibm_init(struct ibm_struct *ibm) ...@@ -2580,7 +2580,6 @@ static int __init ibm_init(struct ibm_struct *ibm)
ret = setup_notify(ibm); ret = setup_notify(ibm);
if (ret < 0) if (ret < 0)
return ret; return ret;
ibm->notify_installed = 1;
} }
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册