ACPI: thinkpad-acpi: keep track of module state
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 23 Sep 2007 14:39:02 +0000 (11:39 -0300)
committerLen Brown <len.brown@intel.com>
Mon, 24 Sep 2007 02:38:14 +0000 (22:38 -0400)
commit8fef502e5a14df05f1e755edc9175e01c9814080
treeb01f587c353c478f4805a5a6681e5593e51f8b1d
parent8523ed6fb2ca04973fe759fda8ab4af72492fc7e
ACPI: thinkpad-acpi: keep track of module state

Keep track of module state (init, running, exit).  This makes it trivially
easy to avoid running any interrupt handlers, threads, or any other async
activity before we are ready, or when we want to go away.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/thinkpad_acpi.c