diff options
author | Alexey Starikovskiy <alexey_y_starikovskiy@linux.intel.com> | 2006-12-18 12:53:33 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-12-19 23:07:39 -0500 |
commit | 4afaf54b3b97fa8cf2d1d9bcd7612b195acb53ae (patch) | |
tree | c04ce0eb771634666f66404a44183eee429725c6 /drivers/acpi/ibm_acpi.c | |
parent | f9ff43a6268d36acf8df18a76bb881a26a42dc1e (diff) |
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>
Diffstat (limited to 'drivers/acpi/ibm_acpi.c')
-rw-r--r-- | 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 92e7b6eb8f19..1397efb71341 100644 --- a/drivers/acpi/ibm_acpi.c +++ b/drivers/acpi/ibm_acpi.c | |||
@@ -2503,7 +2503,7 @@ static int __init setup_notify(struct ibm_struct *ibm) | |||
2503 | ibm->name, status); | 2503 | ibm->name, status); |
2504 | return -ENODEV; | 2504 | return -ENODEV; |
2505 | } | 2505 | } |
2506 | 2506 | ibm->notify_installed = 1; | |
2507 | return 0; | 2507 | return 0; |
2508 | } | 2508 | } |
2509 | 2509 | ||
@@ -2580,7 +2580,6 @@ static int __init ibm_init(struct ibm_struct *ibm) | |||
2580 | ret = setup_notify(ibm); | 2580 | ret = setup_notify(ibm); |
2581 | if (ret < 0) | 2581 | if (ret < 0) |
2582 | return ret; | 2582 | return ret; |
2583 | ibm->notify_installed = 1; | ||
2584 | } | 2583 | } |
2585 | 2584 | ||
2586 | return 0; | 2585 | return 0; |