mirror of https://gitee.com/openkylin/linux.git
ACPI: ibm_acpi: allow clean removal
Allow clean removal by setting notify_installed in the right place. Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com> Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
f9ff43a626
commit
4afaf54b3b
|
@ -2503,7 +2503,7 @@ static int __init setup_notify(struct ibm_struct *ibm)
|
|||
ibm->name, status);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
ibm->notify_installed = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -2580,7 +2580,6 @@ static int __init ibm_init(struct ibm_struct *ibm)
|
|||
ret = setup_notify(ibm);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
ibm->notify_installed = 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue