ACPI: thinkpad-acpi: fix initialization error paths
commit56200904d351669e8fa61a2b9cce99449591fa5d
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 31 May 2008 17:40:55 +0000 (31 14:40 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 31 May 2008 17:40:55 +0000 (31 14:40 -0300)
tree95b04fac899bd0d8046dadb430c2e5241bf82b47
parent3bad7d911fe7d846c00f9b5585a1ecb22f28429f
ACPI: thinkpad-acpi: fix initialization error paths

Rework some subdriver init and exit handlers, in order to fix some
initialization error paths that were missing, or broken.

Hitting those bugs should be extremely rare in the real world, but should
that happen, thinkpad-acpi would fail to dealocate some resources and a
reboot might well be needed to be able to load the driver again.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/misc/thinkpad_acpi.c