From: Alexey Starikovskiy <ale...@li...>
Allow clean removal by setting notify_installed in the right place.
Alexey Starikovskiy <ale...@in...>
Signed-off-by: Henrique de Moraes Holschuh <hm...@hm...>
Signed-off-by: Len Brown <len...@in...>
---
drivers/acpi/ibm_acpi.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c
index 4a9f3bf..025a9f9 100644
--- a/drivers/acpi/ibm_acpi.c
+++ b/drivers/acpi/ibm_acpi.c
@@ -1806,7 +1806,7 @@ static int __init setup_notify(struct ibm_struct *i=
bm)
ibm->name, status);
return -ENODEV;
}
-
+ ibm->notify_installed =3D 1;
return 0;
}
=20
@@ -1883,7 +1883,6 @@ static int __init ibm_init(struct ibm_struct *ibm)
ret =3D setup_notify(ibm);
if (ret < 0)
return ret;
- ibm->notify_installed =3D 1;
}
=20
return 0;
-- =20
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
|