Skip to content

Commit

Permalink
ACPI: ibm_acpi: allow clean removal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Starikovskiy authored and Len Brown committed Dec 20, 2006
1 parent f9ff43a commit 4afaf54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/acpi/ibm_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2503,7 +2503,7 @@ static int __init setup_notify(struct ibm_struct *ibm)
ibm->name, status);
return -ENODEV;
}

ibm->notify_installed = 1;
return 0;
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4afaf54

Please sign in to comment.